Hi Arthur,
Hmm... Please verify with a voltmeter that the DAC0 output is +1V after a DAC0=200 command and -1V after a DAC0=-200 command.
Were you able to drive both ways with the Pot?
TK
Group: DynoMotion |
Message: 555 |
From: aeunson@btinternet.com |
Date: 8/10/2010 |
Subject: Re: Kflop / Kanalog |
Hi Tom,
No Voltmeter reads 0.018v no matter what command.
Using pot motor runs both directions.
I think the problem is I may not be configuring kmotion correctly.
Is there a set by step set of instructions to configure a system?
I have AN+ of my amp connected to DAC out 0 and AN- to gnd. is this oorrect?
Regards
Arthur
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Arthur,
>
> Hmm... Please verify with a voltmeter that the DAC0 output is +1V after a
> DAC0=200 command and -1V after a DAC0=-200 command.
>
> Were you able to drive both ways with the Pot?
>
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tue, August 10, 2010 1:31:29 PM
> Subject: [DynoMotion] Kflop / Kanalog
>
> Â
> Hi everyone.
>
> Totaly new to Kflop, Kanalog and servos but I have successfuly converted a mill
> and lathe to cnc using Mach 3 and steppers but it would seem that using kflop is
> totally different.
>
>
> I have an xy table using Parker Hanifin servos and SV-S drives.
> The drives and motors all work when I use a potentiometer on the I/P.
>
> I have installed Kmotion and differentially connected one of the motors (removed
> from the table so it cant do any damage) to the DAC0 output.
>
> The encoder has not been connected yet.
>
> I have tried to configure Dac0 but must have it wrong as the motor only rotates
> slowly clockwise.
> Using console command DAC0=200 or -200 maks no difference.
>
> Can anyone tell me where I am going wrong.
>
> Regards
>
> Arthur
>
|
|
Group: DynoMotion |
Message: 556 |
From: aeunson@btinternet.com |
Date: 8/10/2010 |
Subject: Re: Kflop / Kanalog |
Tom,
In configuration I have channel 0 Axis mode input set to encoder and output set to DAC Servo.
I then download channel to kmotion. Is this corrct?
Arthur
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Arthur,
>
> Hmm... Please verify with a voltmeter that the DAC0 output is +1V after a
> DAC0=200 command and -1V after a DAC0=-200 command.
>
> Were you able to drive both ways with the Pot?
>
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tue, August 10, 2010 1:31:29 PM
> Subject: [DynoMotion] Kflop / Kanalog
>
> Â
> Hi everyone.
>
> Totaly new to Kflop, Kanalog and servos but I have successfuly converted a mill
> and lathe to cnc using Mach 3 and steppers but it would seem that using kflop is
> totally different.
>
>
> I have an xy table using Parker Hanifin servos and SV-S drives.
> The drives and motors all work when I use a potentiometer on the I/P.
>
> I have installed Kmotion and differentially connected one of the motors (removed
> from the table so it cant do any damage) to the DAC0 output.
>
> The encoder has not been connected yet.
>
> I have tried to configure Dac0 but must have it wrong as the motor only rotates
> slowly clockwise.
> Using console command DAC0=200 or -200 maks no difference.
>
> Can anyone tell me where I am going wrong.
>
> Regards
>
> Arthur
>
|
|
Group: DynoMotion |
Message: 557 |
From: Tom Kerekes |
Date: 8/10/2010 |
Subject: Re: Kflop / Kanalog |
Arthur,
Ah. That is probably the problem. Downloading a configuration enables the axis. To issue DAC commands from the console you should NOT have the axis enabled. If the axis is enabled, then the axis will continuously be writing to the DAC and overwrite anything you do from the console. Disable all the axes on the Axis Screen and try again.
TK
Group: DynoMotion |
Message: 558 |
From: aeunson@btinternet.com |
Date: 8/10/2010 |
Subject: Re: Kflop / Kanalog |
Tom,
Thats it running in both directions. If I send aa dac0=0 the motor still rotates slowly. Is this okay?
Now to try and set up the encoder.
Arthur
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Arthur,
>
> Ah. That is probably the problem. Downloading a configuration enables the
> axis. To issue DAC commands from the console you should NOT have the axis
> enabled. If the axis is enabled, then the axis will continuously be writing to
> the DAC and overwrite anything you do from the console. Disable all the axes on
> the Axis Screen and try again.
>
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tue, August 10, 2010 2:09:08 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
> Â
> Tom,
>
> In configuration I have channel 0 Axis mode input set to encoder and output set
> to DAC Servo.
> I then download channel to kmotion. Is this corrct?
>
> Arthur
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Arthur,
> >
> > Hmm...ÃÂ Please verify with a voltmeter that the DAC0 output is +1V after a
> > DAC0=200 command and -1V after a DAC0=-200 command.
> >
> > Were you able to drive both ways with the Pot?
> >
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tue, August 10, 2010 1:31:29 PM
> > Subject: [DynoMotion] Kflop / Kanalog
> >
> > ÃÂ
> > Hi everyone.
> >
> > Totaly new to Kflop, Kanalog and servos but I have successfuly converted a mill
> >
> > and lathe to cnc using Mach 3 and steppers but it would seem that using kflop
> >is
> >
> > totally different.
> >
> >
> > I have an xy table using Parker Hanifin servos and SV-S drives.
> > The drives and motors all work when I use a potentiometer on the I/P.
> >
> > I have installed Kmotion and differentially connected one of the motors
> >(removed
> >
> > from the table so it cant do any damage) to the DAC0 output.
> >
> > The encoder has not been connected yet.
> >
> > I have tried to configure Dac0 but must have it wrong as the motor only rotates
> >
> > slowly clockwise.
> > Using console command DAC0=200 or -200 maks no difference.
> >
> > Can anyone tell me where I am going wrong.
> >
> > Regards
> >
> > Arthur
> >
>
|
|
Group: DynoMotion |
Message: 559 |
From: Tom Kerekes |
Date: 8/10/2010 |
Subject: Re: Kflop / Kanalog |
Arthur,
Good. With Dac0=0 there is a small offset probably in both Kanalog and the amplifier. If you find the value that makes it stop you can later enter that as an OutputOffset. But the better way to make the axis stop is to disable the axis via an enable bit. Also when the servo eventually is working, the servo will hold position regardless of an offset.
TK
Group: DynoMotion |
Message: 560 |
From: aeunson@btinternet.com |
Date: 8/10/2010 |
Subject: Re: Kflop / Kanalog |
Tom,
I have connected the encoder to JP1 A0+ A0- and B0+ B0-.
Is there anything I need to do in kmotion to configure them?
Arthur
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Arthur,
>
> Good. With Dac0=0 there is a small offset probably in both Kanalog and the
> amplifier. If you find the value that makes it stop you can later enter that as
> an OutputOffset. But the better way to make the axis stop is to disable the
> axis via an enable bit. Also when the servo eventually is working, the servo
> will hold position regardless of an offset.
>
> TKÂ
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tue, August 10, 2010 2:49:12 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
> Â
> Tom,
>
> Thats it running in both directions. If I send aa dac0=0 the motor still rotates
> slowly. Is this okay?
>
> Now to try and set up the encoder.
>
> Arthur
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Arthur,
> >
> > Ah.ÃÂ That is probably the problem.ÃÂ Downloading a configuration enables the
> > axis.ÃÂ To issue DAC commands from the console you should NOT have the axis
> > enabled.ÃÂ If the axis is enabled, then the axis will continuously be writing
> >to
> >
> > the DAC and overwrite anything you do from the console.ÃÂ Disable all the axes
> >on
> >
> > the Axis Screen and try again.
> >
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tue, August 10, 2010 2:09:08 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> > ÃÂ
> > Tom,
> >
> > In configuration I have channel 0 Axis mode input set to encoder and output set
> >
> > to DAC Servo.
> > I then download channel to kmotion. Is this corrct?
> >
> > Arthur
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Arthur,
> > >
> > > Hmm...ÃâàPlease verify with a voltmeter that the DAC0 output is +1V after a
> >
> > > DAC0=200 command and -1V after a DAC0=-200 command.
> > >
> > > Were you able to drive both ways with the Pot?
> > >
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tue, August 10, 2010 1:31:29 PM
> > > Subject: [DynoMotion] Kflop / Kanalog
> > >
> > > ÃâÃÂ
> > > Hi everyone.
> > >
> > > Totaly new to Kflop, Kanalog and servos but I have successfuly converted a
> >mill
> >
> > >
> > > and lathe to cnc using Mach 3 and steppers but it would seem that using kflop
> >
> > >is
> > >
> > > totally different.
> > >
> > >
> > > I have an xy table using Parker Hanifin servos and SV-S drives.
> > > The drives and motors all work when I use a potentiometer on the I/P.
> > >
> > > I have installed Kmotion and differentially connected one of the motors
> > >(removed
> > >
> > > from the table so it cant do any damage) to the DAC0 output.
> > >
> > > The encoder has not been connected yet.
> > >
> > > I have tried to configure Dac0 but must have it wrong as the motor only
> >rotates
> >
> > >
> > > slowly clockwise.
> > > Using console command DAC0=200 or -200 maks no difference.
> > >
> > > Can anyone tell me where I am going wrong.
> > >
> > > Regards
> > >
> > > Arthur
> > >
> >
>
|
|
Group: DynoMotion |
Message: 563 |
From: Tom Kerekes |
Date: 8/10/2010 |
Subject: Re: Kflop / Kanalog |
Arthur,
By default Axis 0 is configured for Encoder 0 input so you shouldn't need to do anything.
But in general you would need to set the Axis configuration to:
InputMode - Encoder
InputChan0 - to the encoder input you wish
TK
Group: DynoMotion |
Message: 564 |
From: aeunson@btinternet.com |
Date: 8/10/2010 |
Subject: Re: Kflop / Kanalog |
Tom,
Thats how I have it but not sure if it is working.
Arthur
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Arthur,
>
> By default Axis 0 is configured for Encoder 0 input so you shouldn't need to do
> anything.
>
> But in general you would need to set the Axis configuration to:
>
> InputMode - Encoder
> InputChan0 - to the encoder input you wish
>
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tue, August 10, 2010 3:26:55 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
> Â
> Tom,
>
> I have connected the encoder to JP1 A0+ A0- and B0+ B0-.
>
> Is there anything I need to do in kmotion to configure them?
>
> Arthur
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Arthur,
> >
> > Good.ÃÂ With Dac0=0 there is a small offset probably in both Kanalog and the
> > amplifier.ÃÂ If you find the value that makes it stop you can later enter that
> >as
> >
> > an OutputOffset.ÃÂ But the better way to make the axis stop is to disable the
> > axis via an enable bit.ÃÂ Also when the servo eventually is working, the servo
>
> > will hold position regardless ofÃÂ an offset.
> >
> > TKÃÂ
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tue, August 10, 2010 2:49:12 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> > ÃÂ
> > Tom,
> >
> > Thats it running in both directions. If I send aa dac0=0 the motor still
> >rotates
> >
> > slowly. Is this okay?
> >
> > Now to try and set up the encoder.
> >
> > Arthur
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Arthur,
> > >
> > > Ah.ÃâàThat is probably the problem.ÃâàDownloading a configuration enables
> >the
> >
> > > axis.ÃâàTo issue DAC commands from the console you should NOT have the axis
> >
> > > enabled.ÃâàIf the axis is enabled, then the axis will continuously be
> >writing
> >
> > >to
> > >
> > > the DAC and overwrite anything you do from the console.ÃâàDisable all the
> >axes
> >
> > >on
> > >
> > > the Axis Screen and try again.
> > >
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tue, August 10, 2010 2:09:08 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > > ÃâÃÂ
> > > Tom,
> > >
> > > In configuration I have channel 0 Axis mode input set to encoder and output
> >set
> >
> > >
> > > to DAC Servo.
> > > I then download channel to kmotion. Is this corrct?
> > >
> > > Arthur
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Arthur,
> > > >
> > > > Hmm...ÃÆ'ââ¬Å¡ÃâàPlease verify with a voltmeter that the DAC0 output is +1V
> >after a
> >
> > >
> > > > DAC0=200 command and -1V after a DAC0=-200 command.
> > > >
> > > > Were you able to drive both ways with the Pot?
> > > >
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tue, August 10, 2010 1:31:29 PM
> > > > Subject: [DynoMotion] Kflop / Kanalog
> > > >
> > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > Hi everyone.
> > > >
> > > > Totaly new to Kflop, Kanalog and servos but I have successfuly converted a
>
> > >mill
> > >
> > > >
> > > > and lathe to cnc using Mach 3 and steppers but it would seem that using
> >kflop
> >
> > >
> > > >is
> > > >
> > > > totally different.
> > > >
> > > >
> > > > I have an xy table using Parker Hanifin servos and SV-S drives.
> > > > The drives and motors all work when I use a potentiometer on the I/P.
> > > >
> > > > I have installed Kmotion and differentially connected one of the motors
> > > >(removed
> > > >
> > > > from the table so it cant do any damage) to the DAC0 output.
> > > >
> > > > The encoder has not been connected yet.
> > > >
> > > > I have tried to configure Dac0 but must have it wrong as the motor only
> > >rotates
> > >
> > > >
> > > > slowly clockwise.
> > > > Using console command DAC0=200 or -200 maks no difference.
> > > >
> > > > Can anyone tell me where I am going wrong.
> > > >
> > > > Regards
> > > >
> > > > Arthur
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 565 |
From: Tom Kerekes |
Date: 8/10/2010 |
Subject: Re: Kflop / Kanalog |
Arthur,
On the Axis Screen does the "Position" change as you rotate the motor/encoder? It should count up when rotating one direction and down the other.
Also on the Digital I/O screen the A/B signals come in as I/O Bits 0 and 1. They should toggle more or less randomly as you rotate the encoder.
The +A and -A signals from your amplifier should be complemetary. That is when one is high (~4V) the other should be low (~0V). Check with a voltmeter (or better yet scope) to see if the Amplifier is driving those pins.
TK
Group: DynoMotion |
Message: 566 |
From: aeunson@btinternet.com |
Date: 8/11/2010 |
Subject: Re: Kflop / Kanalog |
Thanks Tom
Axis position counts up and down depending on direction.
What else do I need to do before I hook up the motor to the table again?
At the moment I can see that I can change direction of the motor but I dont know how I can drive the motor to a certain position and stop it.
Maybe I have taken on to much and should have stuck with steppers.
I was gong to try and connect up the limit switches to prevent any damage.
Regards
Arthur
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Arthur,
>
> On the Axis Screen does the "Position" change as you rotate the motor/encoder?Â
> It should count up when rotating one direction and down the other.
>
> Also on the Digital I/O screen the A/B signals come in as I/O Bits 0 and 1.Â
> They should toggle more or less randomly as you rotate the encoder.
>
> The +A and -A signals from your amplifier should be complemetary. That is when
> one is high (~4V) the other should be low (~0V). Check with a voltmeter (or
> better yet scope) to see if the Amplifier is driving those pins.
>
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tue, August 10, 2010 4:28:02 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
> Â
> Tom,
>
> Thats how I have it but not sure if it is working.
>
> Arthur
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Arthur,
> >
> > By default Axis 0 is configured for Encoder 0 input so you shouldn't need to do
> >
> > anything.
> >
> > But in general you would need to set the Axis configuration to:
> >
> > InputMode - Encoder
> > InputChan0 - to the encoder input you wish
> >
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tue, August 10, 2010 3:26:55 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> > ÃÂ
> > Tom,
> >
> > I have connected the encoder to JP1 A0+ A0- and B0+ B0-.
> >
> > Is there anything I need to do in kmotion to configure them?
> >
> > Arthur
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Arthur,
> > >
> > > Good.ÃâàWith Dac0=0 there is a small offset probably in both Kanalog and
> >the
> >
> > > amplifier.ÃâàIf you find the value that makes it stop you can later enter
> >that
> >
> > >as
> > >
> > > an OutputOffset.ÃâàBut the better way to make the axis stop is to disable
> >the
> >
> > > axis via an enable bit.ÃâàAlso when the servo eventually is working, the
> >servo
> >
> >
> > > will hold position regardless ofÃâàan offset.
> > >
> > > TKÃâÃÂ
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tue, August 10, 2010 2:49:12 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > > ÃâÃÂ
> > > Tom,
> > >
> > > Thats it running in both directions. If I send aa dac0=0 the motor still
> > >rotates
> > >
> > > slowly. Is this okay?
> > >
> > > Now to try and set up the encoder.
> > >
> > > Arthur
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Arthur,
> > > >
> > > > Ah.ÃÆ'ââ¬Å¡ÃâàThat is probably the problem.ÃÆ'ââ¬Å¡ÃâàDownloading a
> >configuration enables
> >
> > >the
> > >
> > > > axis.ÃÆ'ââ¬Å¡ÃâàTo issue DAC commands from the console you should NOT have
> >the axis
> >
> > >
> > > > enabled.ÃÆ'ââ¬Å¡ÃâàIf the axis is enabled, then the axis will continuously
> >be
> >
> > >writing
> > >
> > > >to
> > > >
> > > > the DAC and overwrite anything you do from the console.ÃÆ'ââ¬Å¡ÃâàDisable
> >all the
> >
> > >axes
> > >
> > > >on
> > > >
> > > > the Axis Screen and try again.
> > > >
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tue, August 10, 2010 2:09:08 PM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > Tom,
> > > >
> > > > In configuration I have channel 0 Axis mode input set to encoder and output
> >
> > >set
> > >
> > > >
> > > > to DAC Servo.
> > > > I then download channel to kmotion. Is this corrct?
> > > >
> > > > Arthur
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Arthur,
> > > > >
> > > > > Hmm...ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàPlease verify with a voltmeter that the DAC0
> >output is +1V
> >
> > >after a
> > >
> > > >
> > > > > DAC0=200 command and -1V after a DAC0=-200 command.
> > > > >
> > > > > Were you able to drive both ways with the Pot?
> > > > >
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Tue, August 10, 2010 1:31:29 PM
> > > > > Subject: [DynoMotion] Kflop / Kanalog
> > > > >
> > > > > ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > Hi everyone.
> > > > >
> > > > > Totaly new to Kflop, Kanalog and servos but I have successfuly converted
> >a
> >
> >
> > > >mill
> > > >
> > > > >
> > > > > and lathe to cnc using Mach 3 and steppers but it would seem that using
> > >kflop
> > >
> > > >
> > > > >is
> > > > >
> > > > > totally different.
> > > > >
> > > > >
> > > > > I have an xy table using Parker Hanifin servos and SV-S drives.
> > > > > The drives and motors all work when I use a potentiometer on the I/P.
> > > > >
> > > > > I have installed Kmotion and differentially connected one of the motors
> > > > >(removed
> > > > >
> > > > > from the table so it cant do any damage) to the DAC0 output.
> > > > >
> > > > > The encoder has not been connected yet.
> > > > >
> > > > > I have tried to configure Dac0 but must have it wrong as the motor only
> > > >rotates
> > > >
> > > > >
> > > > > slowly clockwise.
> > > > > Using console command DAC0=200 or -200 maks no difference.
> > > > >
> > > > > Can anyone tell me where I am going wrong.
> > > > >
> > > > > Regards
> > > > >
> > > > > Arthur
> > > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 567 |
From: Tom Kerekes |
Date: 8/11/2010 |
Subject: Re: Kflop / Kanalog |
Hi Arthur,
You are doing great for someone who hasn't done this before. If you have some patience I'm sure you will be successful.
Keep the motor on the bench and see if you can servo. You will need to configure axis0.
See this post and see how much you can do:
A common problem when you first close a servo loop is to have positive feedback instead of negative feedback. In that case the servo will "take off" instead of servoing at a position. In that case reverse something (ie InputGain0=-1).
Wiring the limit switches are a good idea before you put the motors on the machine. They can be configured for any input bit on the Config/Flash Screen. Normally the 5-24V Kanalog opto inputs are the best choice. Verify they toggle by observing the Digital I/O Screen.
Regards
TK
Group: DynoMotion |
Message: 568 |
From: aeunson@btinternet.com |
Date: 8/11/2010 |
Subject: Re: Kflop / Kanalog |
Hi Tom,
I uploaded a screenshot of the result to the files section to see if you think this is correct.
Problem is the motor still rotates slowly cw with no command.
Regards
Arthur
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Arthur,
>
> You are doing great for someone who hasn't done this before. If you have some
> patience I'm sure you will be successful.
>
> Keep the motor on the bench and see if you can servo. You will need to
> configure axis0.
>
> See this post and see how much you can do:Â
>
> http://tech.groups.yahoo.com/group/DynoMotion/message/257
>
> A common problem when you first close a servo loop is to have positive feedback
> instead of negative feedback. In that case the servo will "take off" instead of
> servoing at a position. In that case reverse something (ie InputGain0=-1).
>
> Wiring the limit switches are a good idea before you put the motors on the
> machine. They can be configured for any input bit on the Config/Flash Screen.Â
> Normally the 5-24V Kanalog opto inputs are the best choice. Verify they toggle
> by observing the Digital I/O Screen.
>
> Regards
> TK
>
> Â
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wed, August 11, 2010 12:38:07 AM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
> Â
> Thanks Tom
>
> Axis position counts up and down depending on direction.
>
> What else do I need to do before I hook up the motor to the table again?
>
> At the moment I can see that I can change direction of the motor but I dont know
> how I can drive the motor to a certain position and stop it.
>
> Maybe I have taken on to much and should have stuck with steppers.
>
> I was gong to try and connect up the limit switches to prevent any damage.
>
> Regards
>
> Arthur
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Arthur,
> >
> > On the Axis Screen does the "Position" change as you rotate the
> >motor/encoder?ÃÂ
> >
> > It should count up when rotating one direction and down the other.
> >
> > Also on the Digital I/O screen the A/B signals come in as I/O Bits 0 and 1.ÃÂ
> > They should toggle more or less randomly as you rotate the encoder.
> >
> > The +A and -A signals from your amplifier should be complemetary.ÃÂ That is
> >when
> >
> > one is high (~4V) the other should be low (~0V).ÃÂ Check with a voltmeter (or
> > better yet scope) to see if the Amplifier is driving those pins.
> >
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tue, August 10, 2010 4:28:02 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> > ÃÂ
> > Tom,
> >
> > Thats how I have it but not sure if it is working.
> >
> > Arthur
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Arthur,
> > >
> > > By default Axis 0 is configured for Encoder 0 input so you shouldn't need to
> >do
> >
> > >
> > > anything.
> > >
> > > But in general you would need to set the Axis configuration to:
> > >
> > > InputMode - Encoder
> > > InputChan0 - to the encoder input you wish
> > >
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tue, August 10, 2010 3:26:55 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > > ÃâÃÂ
> > > Tom,
> > >
> > > I have connected the encoder to JP1 A0+ A0- and B0+ B0-.
> > >
> > > Is there anything I need to do in kmotion to configure them?
> > >
> > > Arthur
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Arthur,
> > > >
> > > > Good.ÃÆ'ââ¬Å¡ÃâàWith Dac0=0 there is a small offset probably in both Kanalog
> >and
> >
> > >the
> > >
> > > > amplifier.ÃÆ'ââ¬Å¡ÃâàIf you find the value that makes it stop you can later
> >enter
> >
> > >that
> > >
> > > >as
> > > >
> > > > an OutputOffset.ÃÆ'ââ¬Å¡ÃâàBut the better way to make the axis stop is to
> >disable
> >
> > >the
> > >
> > > > axis via an enable bit.ÃÆ'ââ¬Å¡ÃâàAlso when the servo eventually is working,
> >the
> >
> > >servo
> > >
> > >
> > > > will hold position regardless ofÃÆ'ââ¬Å¡Ãâàan offset.
> > > >
> > > > TKÃÆ'ââ¬Å¡ÃâÃÂ
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tue, August 10, 2010 2:49:12 PM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > Tom,
> > > >
> > > > Thats it running in both directions. If I send aa dac0=0 the motor still
> > > >rotates
> > > >
> > > > slowly. Is this okay?
> > > >
> > > > Now to try and set up the encoder.
> > > >
> > > > Arthur
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Arthur,
> > > > >
> > > > > Ah.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàThat is probably the problem.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Downloading a
> >
> > >configuration enables
> > >
> > > >the
> > > >
> > > > > axis.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàTo issue DAC commands from the console you
> >should NOT have
> >
> > >the axis
> > >
> > > >
> > > > > enabled.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàIf the axis is enabled, then the axis will
> >continuously
> >
> > >be
> > >
> > > >writing
> > > >
> > > > >to
> > > > >
> > > > > the DAC and overwrite anything you do from the
> >console.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàDisable
> >
> > >all the
> > >
> > > >axes
> > > >
> > > > >on
> > > > >
> > > > > the Axis Screen and try again.
> > > > >
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Tue, August 10, 2010 2:09:08 PM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > Tom,
> > > > >
> > > > > In configuration I have channel 0 Axis mode input set to encoder and
> >output
> >
> > >
> > > >set
> > > >
> > > > >
> > > > > to DAC Servo.
> > > > > I then download channel to kmotion. Is this corrct?
> > > > >
> > > > > Arthur
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Arthur,
> > > > > >
> > > > > > Hmm...ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàPlease verify with a
> >voltmeter that the DAC0
> >
> > >output is +1V
> > >
> > > >after a
> > > >
> > > > >
> > > > > > DAC0=200 command and -1V after a DAC0=-200 command.
> > > > > >
> > > > > > Were you able to drive both ways with the Pot?
> > > > > >
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: "aeunson@" <aeunson@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Tue, August 10, 2010 1:31:29 PM
> > > > > > Subject: [DynoMotion] Kflop / Kanalog
> > > > > >
> > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > Hi everyone.
> > > > > >
> > > > > > Totaly new to Kflop, Kanalog and servos but I have successfuly
> >converted
> >
> > >a
> > >
> > >
> > > > >mill
> > > > >
> > > > > >
> > > > > > and lathe to cnc using Mach 3 and steppers but it would seem that using
> >
> > > >kflop
> > > >
> > > > >
> > > > > >is
> > > > > >
> > > > > > totally different.
> > > > > >
> > > > > >
> > > > > > I have an xy table using Parker Hanifin servos and SV-S drives.
> > > > > > The drives and motors all work when I use a potentiometer on the I/P.
> > > > > >
> > > > > > I have installed Kmotion and differentially connected one of the motors
> >
> > > > > >(removed
> > > > > >
> > > > > > from the table so it cant do any damage) to the DAC0 output.
> > > > > >
> > > > > > The encoder has not been connected yet.
> > > > > >
> > > > > > I have tried to configure Dac0 but must have it wrong as the motor only
> >
> > > > >rotates
> > > > >
> > > > > >
> > > > > > slowly clockwise.
> > > > > > Using console command DAC0=200 or -200 maks no difference.
> > > > > >
> > > > > > Can anyone tell me where I am going wrong.
> > > > > >
> > > > > > Regards
> > > > > >
> > > > > > Arthur
> > > > > >
> > > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 569 |
From: aeunson@btinternet.com |
Date: 8/11/2010 |
Subject: Re: Kflop / Kanalog |
Tom
I have just noticed I am getting an error showing in console after a move command.
"Following error Disabled Axis :0"
Arthur
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Arthur,
>
> You are doing great for someone who hasn't done this before. If you have some
> patience I'm sure you will be successful.
>
> Keep the motor on the bench and see if you can servo. You will need to
> configure axis0.
>
> See this post and see how much you can do:Â
>
> http://tech.groups.yahoo.com/group/DynoMotion/message/257
>
> A common problem when you first close a servo loop is to have positive feedback
> instead of negative feedback. In that case the servo will "take off" instead of
> servoing at a position. In that case reverse something (ie InputGain0=-1).
>
> Wiring the limit switches are a good idea before you put the motors on the
> machine. They can be configured for any input bit on the Config/Flash Screen.Â
> Normally the 5-24V Kanalog opto inputs are the best choice. Verify they toggle
> by observing the Digital I/O Screen.
>
> Regards
> TK
>
> Â
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wed, August 11, 2010 12:38:07 AM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
> Â
> Thanks Tom
>
> Axis position counts up and down depending on direction.
>
> What else do I need to do before I hook up the motor to the table again?
>
> At the moment I can see that I can change direction of the motor but I dont know
> how I can drive the motor to a certain position and stop it.
>
> Maybe I have taken on to much and should have stuck with steppers.
>
> I was gong to try and connect up the limit switches to prevent any damage.
>
> Regards
>
> Arthur
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Arthur,
> >
> > On the Axis Screen does the "Position" change as you rotate the
> >motor/encoder?ÃÂ
> >
> > It should count up when rotating one direction and down the other.
> >
> > Also on the Digital I/O screen the A/B signals come in as I/O Bits 0 and 1.ÃÂ
> > They should toggle more or less randomly as you rotate the encoder.
> >
> > The +A and -A signals from your amplifier should be complemetary.ÃÂ That is
> >when
> >
> > one is high (~4V) the other should be low (~0V).ÃÂ Check with a voltmeter (or
> > better yet scope) to see if the Amplifier is driving those pins.
> >
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tue, August 10, 2010 4:28:02 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> > ÃÂ
> > Tom,
> >
> > Thats how I have it but not sure if it is working.
> >
> > Arthur
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Arthur,
> > >
> > > By default Axis 0 is configured for Encoder 0 input so you shouldn't need to
> >do
> >
> > >
> > > anything.
> > >
> > > But in general you would need to set the Axis configuration to:
> > >
> > > InputMode - Encoder
> > > InputChan0 - to the encoder input you wish
> > >
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tue, August 10, 2010 3:26:55 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > > ÃâÃÂ
> > > Tom,
> > >
> > > I have connected the encoder to JP1 A0+ A0- and B0+ B0-.
> > >
> > > Is there anything I need to do in kmotion to configure them?
> > >
> > > Arthur
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Arthur,
> > > >
> > > > Good.ÃÆ'ââ¬Å¡ÃâàWith Dac0=0 there is a small offset probably in both Kanalog
> >and
> >
> > >the
> > >
> > > > amplifier.ÃÆ'ââ¬Å¡ÃâàIf you find the value that makes it stop you can later
> >enter
> >
> > >that
> > >
> > > >as
> > > >
> > > > an OutputOffset.ÃÆ'ââ¬Å¡ÃâàBut the better way to make the axis stop is to
> >disable
> >
> > >the
> > >
> > > > axis via an enable bit.ÃÆ'ââ¬Å¡ÃâàAlso when the servo eventually is working,
> >the
> >
> > >servo
> > >
> > >
> > > > will hold position regardless ofÃÆ'ââ¬Å¡Ãâàan offset.
> > > >
> > > > TKÃÆ'ââ¬Å¡ÃâÃÂ
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tue, August 10, 2010 2:49:12 PM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > Tom,
> > > >
> > > > Thats it running in both directions. If I send aa dac0=0 the motor still
> > > >rotates
> > > >
> > > > slowly. Is this okay?
> > > >
> > > > Now to try and set up the encoder.
> > > >
> > > > Arthur
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Arthur,
> > > > >
> > > > > Ah.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàThat is probably the problem.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Downloading a
> >
> > >configuration enables
> > >
> > > >the
> > > >
> > > > > axis.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàTo issue DAC commands from the console you
> >should NOT have
> >
> > >the axis
> > >
> > > >
> > > > > enabled.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàIf the axis is enabled, then the axis will
> >continuously
> >
> > >be
> > >
> > > >writing
> > > >
> > > > >to
> > > > >
> > > > > the DAC and overwrite anything you do from the
> >console.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàDisable
> >
> > >all the
> > >
> > > >axes
> > > >
> > > > >on
> > > > >
> > > > > the Axis Screen and try again.
> > > > >
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Tue, August 10, 2010 2:09:08 PM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > Tom,
> > > > >
> > > > > In configuration I have channel 0 Axis mode input set to encoder and
> >output
> >
> > >
> > > >set
> > > >
> > > > >
> > > > > to DAC Servo.
> > > > > I then download channel to kmotion. Is this corrct?
> > > > >
> > > > > Arthur
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Arthur,
> > > > > >
> > > > > > Hmm...ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàPlease verify with a
> >voltmeter that the DAC0
> >
> > >output is +1V
> > >
> > > >after a
> > > >
> > > > >
> > > > > > DAC0=200 command and -1V after a DAC0=-200 command.
> > > > > >
> > > > > > Were you able to drive both ways with the Pot?
> > > > > >
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: "aeunson@" <aeunson@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Tue, August 10, 2010 1:31:29 PM
> > > > > > Subject: [DynoMotion] Kflop / Kanalog
> > > > > >
> > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > Hi everyone.
> > > > > >
> > > > > > Totaly new to Kflop, Kanalog and servos but I have successfuly
> >converted
> >
> > >a
> > >
> > >
> > > > >mill
> > > > >
> > > > > >
> > > > > > and lathe to cnc using Mach 3 and steppers but it would seem that using
> >
> > > >kflop
> > > >
> > > > >
> > > > > >is
> > > > > >
> > > > > > totally different.
> > > > > >
> > > > > >
> > > > > > I have an xy table using Parker Hanifin servos and SV-S drives.
> > > > > > The drives and motors all work when I use a potentiometer on the I/P.
> > > > > >
> > > > > > I have installed Kmotion and differentially connected one of the motors
> >
> > > > > >(removed
> > > > > >
> > > > > > from the table so it cant do any damage) to the DAC0 output.
> > > > > >
> > > > > > The encoder has not been connected yet.
> > > > > >
> > > > > > I have tried to configure Dac0 but must have it wrong as the motor only
> >
> > > > >rotates
> > > > >
> > > > > >
> > > > > > slowly clockwise.
> > > > > > Using console command DAC0=200 or -200 maks no difference.
> > > > > >
> > > > > > Can anyone tell me where I am going wrong.
> > > > > >
> > > > > > Regards
> > > > > >
> > > > > > Arthur
> > > > > >
> > > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 570 |
From: Tom Kerekes |
Date: 8/11/2010 |
Subject: Re: Kflop / Kanalog |
Hi Arthur,
The main problem is that it looks like you have positive feedback instead of negative feedback (the motor is driving the wrong way to correct any error).
See:
Also push the "Zero" button before the move to make the encoder numbers not so big.
Also increase your Max Velocity, Acceleration, and Jerk to 10000 100000 and 1000000. To make a motion of 1000 counts at only 100 counts/sec will take 10 seconds. That is why the blue plot is hardly changing - it is moving at a crawl.
Hang in there you are making progress :}
TK
Group: DynoMotion |
Message: 571 |
From: aeunson@btinternet.com |
Date: 8/11/2010 |
Subject: Re: Kflop / Kanalog |
Hi Tom
Ok I think that has done the trick but i notice the motor drives anticlockwise about 1/2 turn and returns.
I have attached another screenshot to the files folder.
Regards
Arthur
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Arthur,
>
> The main problem is that it looks like you have positive feedback instead of
> negative feedback (the motor is driving the wrong way to correct any error).
>
> See:
>
> http://tech.groups.yahoo.com/group/DynoMotion/message/264
>
> Also push the "Zero" button before the move to make the encoder numbers not so
> big.
>
> Also increase your Max Velocity, Acceleration, and Jerk to 10000 100000 and
> 1000000. To make a motion of 1000 counts at only 100 counts/sec will take 10
> seconds.   That is why the blue plot is hardly changing - it is moving at a
> crawl.
>
> Hang in there you are making progress :}
>
> TKÂ
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wed, August 11, 2010 1:33:34 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
> Â
> Tom
>
> I have just noticed I am getting an error showing in console after a move
> command.
>
> "Following error Disabled Axis :0"
>
> Arthur
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Arthur,
> >
> > You are doing great for someone who hasn't done this before.ÃÂ If you have some
> >
> > patience I'm sure you will be successful.
> >
> > Keep the motor on the bench and see if you can servo.ÃÂ You will need to
> > configure axis0.
> >
> > See this post and see how much you can do:ÃÂ
> >
> > http://tech.groups.yahoo.com/group/DynoMotion/message/257
> >
> > A common problem when you first close a servo loop is to have positive feedback
> >
> > instead of negative feedback.ÃÂ In that case the servo will "take off" instead
> >of
> >
> > servoing at a position.ÃÂ In that case reverse something (ie InputGain0=-1).
> >
> > Wiring the limit switches are a good idea before you put the motors on the
> > machine.ÃÂ They can be configured for any input bit on the Config/Flash
> >Screen.ÃÂ
> >
> > Normally the 5-24V Kanalog opto inputs are the best choice.ÃÂ Verify they
> >toggle
> >
> > by observing the Digital I/O Screen.
> >
> > Regards
> > TK
> >
> > ÃÂ
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Wed, August 11, 2010 12:38:07 AM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> > ÃÂ
> > Thanks Tom
> >
> > Axis position counts up and down depending on direction.
> >
> > What else do I need to do before I hook up the motor to the table again?
> >
> > At the moment I can see that I can change direction of the motor but I dont
> >know
> >
> > how I can drive the motor to a certain position and stop it.
> >
> > Maybe I have taken on to much and should have stuck with steppers.
> >
> > I was gong to try and connect up the limit switches to prevent any damage.
> >
> > Regards
> >
> > Arthur
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Arthur,
> > >
> > > On the Axis Screen does the "Position" change as you rotate the
> > >motor/encoder?ÃâÃÂ
> > >
> > > It should count up when rotating one direction and down the other.
> > >
> > > Also on the Digital I/O screen the A/B signals come in as I/O Bits 0 and
> >1.ÃâÃÂ
> >
> > > They should toggle more or less randomly as you rotate the encoder.
> > >
> > > The +A and -A signals from your amplifier should be complemetary.ÃâàThat is
> >
> > >when
> > >
> > > one is high (~4V) the other should be low (~0V).ÃâàCheck with a voltmeter
> >(or
> >
> > > better yet scope) to see if the Amplifier is driving those pins.
> > >
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tue, August 10, 2010 4:28:02 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > > ÃâÃÂ
> > > Tom,
> > >
> > > Thats how I have it but not sure if it is working.
> > >
> > > Arthur
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Arthur,
> > > >
> > > > By default Axis 0 is configured for Encoder 0 input so you shouldn't need
> >to
> >
> > >do
> > >
> > > >
> > > > anything.
> > > >
> > > > But in general you would need to set the Axis configuration to:
> > > >
> > > > InputMode - Encoder
> > > > InputChan0 - to the encoder input you wish
> > > >
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tue, August 10, 2010 3:26:55 PM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > Tom,
> > > >
> > > > I have connected the encoder to JP1 A0+ A0- and B0+ B0-.
> > > >
> > > > Is there anything I need to do in kmotion to configure them?
> > > >
> > > > Arthur
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Arthur,
> > > > >
> > > > > Good.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàWith Dac0=0 there is a small offset probably in
> >both Kanalog
> >
> > >and
> > >
> > > >the
> > > >
> > > > > amplifier.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàIf you find the value that makes it stop
> >you can later
> >
> > >enter
> > >
> > > >that
> > > >
> > > > >as
> > > > >
> > > > > an OutputOffset.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàBut the better way to make the axis
> >stop is to
> >
> > >disable
> > >
> > > >the
> > > >
> > > > > axis via an enable bit.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàAlso when the servo
> >eventually is working,
> >
> > >the
> > >
> > > >servo
> > > >
> > > >
> > > > > will hold position regardless ofÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ãâàan offset.
> > > > >
> > > > > TKÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Tue, August 10, 2010 2:49:12 PM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > Tom,
> > > > >
> > > > > Thats it running in both directions. If I send aa dac0=0 the motor still
>
> > > > >rotates
> > > > >
> > > > > slowly. Is this okay?
> > > > >
> > > > > Now to try and set up the encoder.
> > > > >
> > > > > Arthur
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Arthur,
> > > > > >
> > > > > > Ah.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàThat is probably the
> >problem.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >
> > >Downloading a
> > >
> > > >configuration enables
> > > >
> > > > >the
> > > > >
> > > > > > axis.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàTo issue DAC commands
> >from the console you
> >
> > >should NOT have
> > >
> > > >the axis
> > > >
> > > > >
> > > > > > enabled.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàIf the axis is
> >enabled, then the axis will
> >
> > >continuously
> > >
> > > >be
> > > >
> > > > >writing
> > > > >
> > > > > >to
> > > > > >
> > > > > > the DAC and overwrite anything you do from the
> > >console.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàDisable
> > >
> > > >all the
> > > >
> > > > >axes
> > > > >
> > > > > >on
> > > > > >
> > > > > > the Axis Screen and try again.
> > > > > >
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: "aeunson@" <aeunson@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Tue, August 10, 2010 2:09:08 PM
> > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > >
> > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > Tom,
> > > > > >
> > > > > > In configuration I have channel 0 Axis mode input set to encoder and
> > >output
> > >
> > > >
> > > > >set
> > > > >
> > > > > >
> > > > > > to DAC Servo.
> > > > > > I then download channel to kmotion. Is this corrct?
> > > > > >
> > > > > > Arthur
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Arthur,
> > > > > > >
> > > > > > >
> >Hmm...ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > Please verify with a
> >
> > >voltmeter that the DAC0
> > >
> > > >output is +1V
> > > >
> > > > >after a
> > > > >
> > > > > >
> > > > > > > DAC0=200 command and -1V after a DAC0=-200 command.
> > > > > > >
> > > > > > > Were you able to drive both ways with the Pot?
> > > > > > >
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Tue, August 10, 2010 1:31:29 PM
> > > > > > > Subject: [DynoMotion] Kflop / Kanalog
> > > > > > >
> > > > > > >
> >ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >
> > > > > > > Hi everyone.
> > > > > > >
> > > > > > > Totaly new to Kflop, Kanalog and servos but I have successfuly
> > >converted
> > >
> > > >a
> > > >
> > > >
> > > > > >mill
> > > > > >
> > > > > > >
> > > > > > > and lathe to cnc using Mach 3 and steppers but it would seem that
> >using
> >
> > >
> > > > >kflop
> > > > >
> > > > > >
> > > > > > >is
> > > > > > >
> > > > > > > totally different.
> > > > > > >
> > > > > > >
> > > > > > > I have an xy table using Parker Hanifin servos and SV-S drives.
> > > > > > > The drives and motors all work when I use a potentiometer on the
> I/P.
> > > > > > >
> > > > > > > I have installed Kmotion and differentially connected one of the
> >motors
> >
> > >
> > > > > > >(removed
> > > > > > >
> > > > > > > from the table so it cant do any damage) to the DAC0 output.
> > > > > > >
> > > > > > > The encoder has not been connected yet.
> > > > > > >
> > > > > > > I have tried to configure Dac0 but must have it wrong as the motor
> >only
> >
> > >
> > > > > >rotates
> > > > > >
> > > > > > >
> > > > > > > slowly clockwise.
> > > > > > > Using console command DAC0=200 or -200 maks no difference.
> > > > > > >
> > > > > > > Can anyone tell me where I am going wrong.
> > > > > > >
> > > > > > > Regards
> > > > > > >
> > > > > > > Arthur
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 572 |
From: Tom Kerekes |
Date: 8/11/2010 |
Subject: Re: Kflop / Kanalog |
Congratulations Arthur! You now have a closed servo loop.
Since moving 1000 counts results in 1/2 rev, then the resolution must be about 2000 counts/rev.
Of course your motion is very slow and sloppy so the next step is to optimize the servo tuning. Please see:
Notice in your case, the output (green plot and right side scale) is clamping at only 20 DAC counts (~0.1V). This is because of our max allowed error (200) and very low P gain of 0.1.
Regards
TK
Group: DynoMotion |
Message: 575 |
From: aeunson@btinternet.com |
Date: 8/12/2010 |
Subject: Re: Kflop / Kanalog |
Thanks Tom,
Your support of your product is excellent and I now feel I am getting somewhere.
I increased the P gain upto 1.7 where I could just feel the motor oscillate so reduced it to 0.8.
The I gain was set to 0.0001,any higher and it seemd to create an overshoot of the output.
I also noticed to get a full revolution I had to increase the move to 4096.
Again I have uploaded the results to the files section.
Before I move everything out to the workshop and connect up the machine for real I would like to be able to understand getting Mach to work on the single axis I have here in the office. I will also connect up home and limit switches.
Regards
Arthur
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Congratulations Arthur! You now have a closed servo loop.Â
>
> Since moving 1000 counts results in 1/2 rev, then the resolution must be about
> 2000 counts/rev.
>
> Of course your motion is very slow and sloppy so the next step is to optimize
> the servo tuning. Please see:
>
> http://tech.groups.yahoo.com/group/DynoMotion/message/507
>
> Notice in your case, the output (green plot and right side scale)Â is clamping at
> only 20 DAC counts (~0.1V). This is because of our max allowed error (200) and
> very low P gain of 0.1.
>
> Regards
> TK
>
>
> Â
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wed, August 11, 2010 2:54:28 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
> Â
> Hi Tom
>
> Ok I think that has done the trick but i notice the motor drives anticlockwise
> about 1/2 turn and returns.
>
> I have attached another screenshot to the files folder.
>
> Regards
>
> Arthur
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Arthur,
> >
> > The main problem is that it looks like you have positive feedback instead of
> > negative feedback (the motor is driving the wrong way to correct any error).
> >
> > See:
> >
> > http://tech.groups.yahoo.com/group/DynoMotion/message/264
> >
> > Also push the "Zero" button before the move to make the encoder numbers not so
>
> > big.
> >
> > Also increase your Max Velocity, Acceleration, and Jerk to 10000 100000 and
> > 1000000.ÃÂ To make a motion of 1000 counts at only 100 counts/sec will take 10
>
> > seconds.ÃÂ ÃÂ ÃÂ That is why the blue plot is hardly changing - it is moving at a
> >
> > crawl.
> >
> > Hang in there you are making progress :}
> >
> > TKÃÂ
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Wed, August 11, 2010 1:33:34 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> > ÃÂ
> > Tom
> >
> > I have just noticed I am getting an error showing in console after a move
> > command.
> >
> > "Following error Disabled Axis :0"
> >
> > Arthur
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Arthur,
> > >
> > > You are doing great for someone who hasn't done this before.ÃâàIf you have
> >some
> >
> > >
> > > patience I'm sure you will be successful.
> > >
> > > Keep the motor on the bench and see if you can servo.ÃâàYou will need to
> > > configure axis0.
> > >
> > > See this post and see how much you can do:ÃâÃÂ
> > >
> > > http://tech.groups.yahoo.com/group/DynoMotion/message/257
> > >
> > > A common problem when you first close a servo loop is to have positive
> >feedback
> >
> > >
> > > instead of negative feedback.ÃâàIn that case the servo will "take off"
> >instead
> >
> > >of
> > >
> > > servoing at a position.ÃâàIn that case reverse something (ie
> >InputGain0=-1).
> > >
> > > Wiring the limit switches are a good idea before you put the motors on the
> > > machine.ÃâàThey can be configured for any input bit on the Config/Flash
> > >Screen.ÃâÃÂ
> > >
> > > Normally the 5-24V Kanalog opto inputs are the best choice.ÃâàVerify they
> > >toggle
> > >
> > > by observing the Digital I/O Screen.
> > >
> > > Regards
> > > TK
> > >
> > > ÃâÃÂ
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Wed, August 11, 2010 12:38:07 AM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > > ÃâÃÂ
> > > Thanks Tom
> > >
> > > Axis position counts up and down depending on direction.
> > >
> > > What else do I need to do before I hook up the motor to the table again?
> > >
> > > At the moment I can see that I can change direction of the motor but I dont
> > >know
> > >
> > > how I can drive the motor to a certain position and stop it.
> > >
> > > Maybe I have taken on to much and should have stuck with steppers.
> > >
> > > I was gong to try and connect up the limit switches to prevent any damage.
> > >
> > > Regards
> > >
> > > Arthur
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Arthur,
> > > >
> > > > On the Axis Screen does the "Position" change as you rotate the
> > > >motor/encoder?ÃÆ'ââ¬Å¡ÃâÃÂ
> > > >
> > > > It should count up when rotating one direction and down the other.
> > > >
> > > > Also on the Digital I/O screen the A/B signals come in as I/O Bits 0 and
> > >1.ÃÆ'ââ¬Å¡ÃâÃÂ
> > >
> > > > They should toggle more or less randomly as you rotate the encoder.
> > > >
> > > > The +A and -A signals from your amplifier should be complemetary.ÃÆ'ââ¬Å¡ÃâÃÂ
> >That is
> >
> > >
> > > >when
> > > >
> > > > one is high (~4V) the other should be low (~0V).ÃÆ'ââ¬Å¡ÃâàCheck with a
> >voltmeter
> >
> > >(or
> > >
> > > > better yet scope) to see if the Amplifier is driving those pins.
> > > >
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tue, August 10, 2010 4:28:02 PM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > Tom,
> > > >
> > > > Thats how I have it but not sure if it is working.
> > > >
> > > > Arthur
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Arthur,
> > > > >
> > > > > By default Axis 0 is configured for Encoder 0 input so you shouldn't need
> >
> > >to
> > >
> > > >do
> > > >
> > > > >
> > > > > anything.
> > > > >
> > > > > But in general you would need to set the Axis configuration to:
> > > > >
> > > > > InputMode - Encoder
> > > > > InputChan0 - to the encoder input you wish
> > > > >
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Tue, August 10, 2010 3:26:55 PM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > Tom,
> > > > >
> > > > > I have connected the encoder to JP1 A0+ A0- and B0+ B0-.
> > > > >
> > > > > Is there anything I need to do in kmotion to configure them?
> > > > >
> > > > > Arthur
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Arthur,
> > > > > >
> > > > > > Good.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàWith Dac0=0 there is a
> >small offset probably in
> >
> > >both Kanalog
> > >
> > > >and
> > > >
> > > > >the
> > > > >
> > > > > > amplifier.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàIf you find the
> >value that makes it stop
> >
> > >you can later
> > >
> > > >enter
> > > >
> > > > >that
> > > > >
> > > > > >as
> > > > > >
> > > > > > an OutputOffset.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàBut the
> >better way to make the axis
> >
> > >stop is to
> > >
> > > >disable
> > > >
> > > > >the
> > > > >
> > > > > > axis via an enable bit.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàAlso
> >when the servo
> >
> > >eventually is working,
> > >
> > > >the
> > > >
> > > > >servo
> > > > >
> > > > >
> > > > > > will hold position regardless
> >ofÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ãâàan offset.
> > > > > >
> > > > > > TKÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: "aeunson@" <aeunson@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Tue, August 10, 2010 2:49:12 PM
> > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > >
> > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > Tom,
> > > > > >
> > > > > > Thats it running in both directions. If I send aa dac0=0 the motor
> >still
> >
> >
> > > > > >rotates
> > > > > >
> > > > > > slowly. Is this okay?
> > > > > >
> > > > > > Now to try and set up the encoder.
> > > > > >
> > > > > > Arthur
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Arthur,
> > > > > > >
> > > > > > >
> >Ah.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàThat
> > is probably the
> >
> >>problem.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> >
> > >
> > > >Downloading a
> > > >
> > > > >configuration enables
> > > > >
> > > > > >the
> > > > > >
> > > > > > >
> >axis.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > To issue DAC commands
> >
> > >from the console you
> > >
> > > >should NOT have
> > > >
> > > > >the axis
> > > > >
> > > > > >
> > > > > > >
> >enabled.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > If the axis is
> >
> > >enabled, then the axis will
> > >
> > > >continuously
> > > >
> > > > >be
> > > > >
> > > > > >writing
> > > > > >
> > > > > > >to
> > > > > > >
> > > > > > > the DAC and overwrite anything you do from the
> > >
> >>console.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > Disable
> >
> > > >
> > > > >all the
> > > > >
> > > > > >axes
> > > > > >
> > > > > > >on
> > > > > > >
> > > > > > > the Axis Screen and try again.
> > > > > > >
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Tue, August 10, 2010 2:09:08 PM
> > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > >
> > > > > > >
> >ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >
> > > > > > > Tom,
> > > > > > >
> > > > > > > In configuration I have channel 0 Axis mode input set to encoder and
>
> > > >output
> > > >
> > > > >
> > > > > >set
> > > > > >
> > > > > > >
> > > > > > > to DAC Servo.
> > > > > > > I then download channel to kmotion. Is this corrct?
> > > > > > >
> > > > > > > Arthur
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Arthur,
> > > > > > > >
> > > > > > > >
> >>Hmm...ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > > Please verify with a
> > >
> > > >voltmeter that the DAC0
> > > >
> > > > >output is +1V
> > > > >
> > > > > >after a
> > > > > >
> > > > > > >
> > > > > > > > DAC0=200 command and -1V after a DAC0=-200 command.
> > > > > > > >
> > > > > > > > Were you able to drive both ways with the Pot?
> > > > > > > >
> > > > > > > > TK
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ________________________________
> > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Tue, August 10, 2010 1:31:29 PM
> > > > > > > > Subject: [DynoMotion] Kflop / Kanalog
> > > > > > > >
> > > > > > > >
> >>ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >
> > > > > > > > Hi everyone.
> > > > > > > >
> > > > > > > > Totaly new to Kflop, Kanalog and servos but I have successfuly
> > > >converted
> > > >
> > > > >a
> > > > >
> > > > >
> > > > > > >mill
> > > > > > >
> > > > > > > >
> > > > > > > > and lathe to cnc using Mach 3 and steppers but it would seem that
> > >using
> > >
> > > >
> > > > > >kflop
> > > > > >
> > > > > > >
> > > > > > > >is
> > > > > > > >
> > > > > > > > totally different.
> > > > > > > >
> > > > > > > >
> > > > > > > > I have an xy table using Parker Hanifin servos and SV-S drives.
> > > > > > > > The drives and motors all work when I use a potentiometer on the
> > I/P.
> > > > > > > >
> > > > > > > > I have installed Kmotion and differentially connected one of the
> > >motors
> > >
> > > >
> > > > > > > >(removed
> > > > > > > >
> > > > > > > > from the table so it cant do any damage) to the DAC0 output.
> > > > > > > >
> > > > > > > > The encoder has not been connected yet.
> > > > > > > >
> > > > > > > > I have tried to configure Dac0 but must have it wrong as the motor
>
> > >only
> > >
> > > >
> > > > > > >rotates
> > > > > > >
> > > > > > > >
> > > > > > > > slowly clockwise.
> > > > > > > > Using console command DAC0=200 or -200 maks no difference.
> > > > > > > >
> > > > > > > > Can anyone tell me where I am going wrong.
> > > > > > > >
> > > > > > > > Regards
> > > > > > > >
> > > > > > > > Arthur
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 576 |
From: Tom Kerekes |
Date: 8/12/2010 |
Subject: Re: Kflop / Kanalog |
Hi Arthur,
I didn't see a new file uploaded.
Now that you have one axis working you are ready to try driving it from Mach3. You need to make a C program that Mach can use to configure KFlop.
Follow the procedure described here (you are now at step 4)
Start with some Example Initialization program such as InitStepDir3Axis.c. Paste your configuration over the ch0 settings. Remove all the settings for ch1 and ch2.
Change the DefineCoordSystem call to just define one ch0 axis in the system as X by:
DefineCoordSystem(0,-1,-1,-1);
Also change the Enable statement from:
EnableAxisDest(0,0);
to
EnableAxisDest(0, ch0->Position);
(this will enable the axis and servo at the current encoder position, otherwise you might get a rapid motion to a destination of zero)
Let us know how far you get.
Regards
TK
Group: DynoMotion |
Message: 577 |
From: aeunson@btinternet.com |
Date: 8/12/2010 |
Subject: Re: Kflop / Kanalog |
Sorry Tom
Forgot to add the file. its there now.
I will try driving it from mach when I get back in a couple of hours.
Art.
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Arthur,
>
> I didn't see a new file uploaded.
>
> Now that you have one axis working you are ready to try driving it from Mach3.
> You need to make a C program that Mach can use to configure KFlop.
>
> Follow the procedure described here (you are now at step 4)
>
> http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
>
> Start with some Example Initialization program such as InitStepDir3Axis.c.
> Paste your configuration over the ch0 settings. Remove all the settings for ch1
> and ch2.
>
> Change the DefineCoordSystem call to just define one ch0 axis in the system as X
> by:
>
>
> DefineCoordSystem(0,-1,-1,-1);
>
> Also change the Enable statement from:
>
> EnableAxisDest(0,0);
>
> to
>
> EnableAxisDest(0, ch0->Position);
>
> (this will enable the axis and servo at the current encoder position, otherwise
> you might get a rapid motion to a destination of zero)
>
> Let us know how far you get.
>
> Regards
> TK
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Thu, August 12, 2010 1:35:53 AM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>
>
> Thanks Tom,
>
> Your support of your product is excellent and I now feel I am getting somewhere.
>
> I increased the P gain upto 1.7 where I could just feel the motor oscillate so
> reduced it to 0.8.
>
> The I gain was set to 0.0001,any higher and it seemd to create an overshoot of
> the output.
>
> I also noticed to get a full revolution I had to increase the move to 4096.
>
> Again I have uploaded the results to the files section.
>
> Before I move everything out to the workshop and connect up the machine for real
> I would like to be able to understand getting Mach to work on the single axis I
> have here in the office. I will also connect up home and limit switches.
>
> Regards
>
> Arthur
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Congratulations Arthur! You now have a closed servo loop.Â
> >
> > Since moving 1000 counts results in 1/2 rev, then the resolution must be about
>
> > 2000 counts/rev.
> >
> > Of course your motion is very slow and sloppy so the next step is to optimize
> > the servo tuning. Please see:
> >
> > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> >
> > Notice in your case, the output (green plot and right side scale)Â is clamping
> >at
> >
> > only 20 DAC counts (~0.1V). This is because of our max allowed error (200)
> >and
> >
> > very low P gain of 0.1.
> >
> > Regards
> > TK
> >
> >
>
|
|
Group: DynoMotion |
Message: 578 |
From: Marty Escarcega |
Date: 8/12/2010 |
Subject: Re: Kflop / Kanalog |
Art, thanks for sharing your progress, Its inspiration to me! I'm an electrician by trade with basic electronic skill. My group maintains the Traffic Signal control system for the City of Mesa. I'm not worried about wiring everything up, its the bit of programming and getting it to work with Mach III. (I'm collecting the parts to convert a Clausing12"x24" lathe. Given Tom's support, I have no doubt the plug in will soon be upgraded to do single point threading so I'm just going to keep collecting parts. Getting close to having to by Kflop/Snapamp though in the next month or two!
Marty
---- " aeunson@..." < aeunson@...> wrote:
>
> Sorry Tom
>
> Forgot to add the file. its there now.
>
> I will try driving it from mach when I get back in a couple of hours.
>
> Art.
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
> >
> > Hi Arthur,
> >
> > I didn't see a new file uploaded.
> >
> > Now that you have one axis working you are ready to try driving it from Mach3.
> > You need to make a C program that Mach can use to configure KFlop.
> >
> > Follow the procedure described here (you are now at step 4)
> >
> > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> >
> > Start with some Example Initialization program such as InitStepDir3Axis.c.
> > Paste your configuration over the ch0 settings. Remove all the settings for ch1
> > and ch2.
> >
> > Change the DefineCoordSystem call to just define one ch0 axis in the system as X
> > by:
> >
> >
> > DefineCoordSystem(0,-1,-1,-1);
> >
> > Also change the Enable statement from:
> >
> > EnableAxisDest(0,0);
> >
> > to
> >
> > EnableAxisDest(0, ch0->Position);
> >
> > (this will enable the axis and servo at the current encoder position, otherwise
> > you might get a rapid motion to a destination of zero)
> >
> > Let us know how far you get.
> >
> > Regards
> > TK
> >
> >
> > ________________________________
> > From: "aeunson@..." <aeunson@...>
> > To: DynoMotion@yahoogroups.com
> > Sent: Thu, August 12, 2010 1:35:53 AM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> >
> >
> > Thanks Tom,
> >
> > Your support of your product is excellent and I now feel I am getting somewhere.
> >
> > I increased the P gain upto 1.7 where I could just feel the motor oscillate so
> > reduced it to 0.8.
> >
> > The I gain was set to 0.0001,any higher and it seemd to create an overshoot of
> > the output.
> >
> > I also noticed to get a full revolution I had to increase the move to 4096.
> >
> > Again I have uploaded the results to the files section.
> >
> > Before I move everything out to the workshop and connect up the machine for real
> > I would like to be able to understand getting Mach to work on the single axis I
> > have here in the office. I will also connect up home and limit switches.
> >
> > Regards
> >
> > Arthur
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Congratulations Arthur! You now have a closed servo loop.Â
> > >
> > > Since moving 1000 counts results in 1/2 rev, then the resolution must be about
> >
> > > 2000 counts/rev.
> > >
> > > Of course your motion is very slow and sloppy so the next step is to optimize
> > > the servo tuning. Please see:
> > >
> > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > >
> > > Notice in your case, the output (green plot and right side scale)Â is clamping
> > >at
> > >
> > > only 20 DAC counts (~0.1V). This is because of our max allowed error (200)
> > >and
> > >
> > > very low P gain of 0.1.
> > >
> > > Regards
> > > TK
> > >
> > >
> >
>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
|
|
Group: DynoMotion |
Message: 579 |
From: aeunson@btinternet.com |
Date: 8/12/2010 |
Subject: Re: Kflop / Kanalog |
Hi Tom,
Nearly there but not quite.
When I Jog in mach it will continue to run in one direction untill I jog in the opposite direction where it will still keep running.
Here is the program I ended up with.
Regards
Arthur
ch0->InputMode=ENCODER_MODE;
ch0->OutputMode=DAC_SERVO_MODE;
ch0->Vel=10000;
ch0->Accel=100000;
ch0->Jerk=1000000;
ch0->P=0.8000000119209;
ch0->I=9.999999747379e-005;
ch0->D=0;
ch0->FFAccel=0;
ch0->FFVel=0;
ch0->MaxI=200;
ch0->MaxErr=200;
ch0->MaxOutput=2047;
ch0->DeadBandGain=1;
ch0->DeadBandRange=0;
ch0->InputChan0=0;
ch0->InputChan1=1;
ch0->OutputChan0=0;
ch0->OutputChan1=1;
ch0->MasterAxis=-1;
ch0->LimitSwitchOptions=0x0;
ch0->InputGain0=-1;
ch0->InputGain1=1;
ch0->InputOffset0=0;
ch0->InputOffset1=0;
ch0->OutputGain=1;
ch0->OutputOffset=0;
ch0->SlaveGain=1;
ch0->BacklashMode=BACKLASH_OFF;
ch0->BacklashAmount=0;
ch0->BacklashRate=0;
ch0->invDistPerCycle=1;
ch0->Lead=0;
ch0->MaxFollowingError=4000;
ch0->StepperAmplitude=250;
ch0->iir[0].B0=1;
ch0->iir[0].B1=0;
ch0->iir[0].B2=0;
ch0->iir[0].A1=0;
ch0->iir[0].A2=0;
ch0->iir[1].B0=1;
ch0->iir[1].B1=0;
ch0->iir[1].B2=0;
ch0->iir[1].A1=0;
ch0->iir[1].A2=0;
ch0->iir[2].B0=1;
ch0->iir[2].B1=0;
ch0->iir[2].B2=0;
ch0->iir[2].A1=0;
ch0->iir[2].A2=0;
EnableAxisDest (0,ch0->Position);
DefineCordSystem (0,-1,-1,-1);
return 0;
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Arthur,
>
> I didn't see a new file uploaded.
>
> Now that you have one axis working you are ready to try driving it from Mach3.
> You need to make a C program that Mach can use to configure KFlop.
>
> Follow the procedure described here (you are now at step 4)
>
> http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
>
> Start with some Example Initialization program such as InitStepDir3Axis.c.
> Paste your configuration over the ch0 settings. Remove all the settings for ch1
> and ch2.
>
> Change the DefineCoordSystem call to just define one ch0 axis in the system as X
> by:
>
>
> DefineCoordSystem(0,-1,-1,-1);
>
> Also change the Enable statement from:
>
> EnableAxisDest(0,0);
>
> to
>
> EnableAxisDest(0, ch0->Position);
>
> (this will enable the axis and servo at the current encoder position, otherwise
> you might get a rapid motion to a destination of zero)
>
> Let us know how far you get.
>
> Regards
> TK
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Thu, August 12, 2010 1:35:53 AM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
>
>
> Thanks Tom,
>
> Your support of your product is excellent and I now feel I am getting somewhere.
>
> I increased the P gain upto 1.7 where I could just feel the motor oscillate so
> reduced it to 0.8.
>
> The I gain was set to 0.0001,any higher and it seemd to create an overshoot of
> the output.
>
> I also noticed to get a full revolution I had to increase the move to 4096.
>
> Again I have uploaded the results to the files section.
>
> Before I move everything out to the workshop and connect up the machine for real
> I would like to be able to understand getting Mach to work on the single axis I
> have here in the office. I will also connect up home and limit switches.
>
> Regards
>
> Arthur
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Congratulations Arthur! You now have a closed servo loop.Â
> >
> > Since moving 1000 counts results in 1/2 rev, then the resolution must be about
>
> > 2000 counts/rev.
> >
> > Of course your motion is very slow and sloppy so the next step is to optimize
> > the servo tuning. Please see:
> >
> > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> >
> > Notice in your case, the output (green plot and right side scale)Â is clamping
> >at
> >
> > only 20 DAC counts (~0.1V). This is because of our max allowed error (200)
> >and
> >
> > very low P gain of 0.1.
> >
> > Regards
> > TK
> >
> >
>
|
|
Group: DynoMotion |
Message: 580 |
From: Tom Kerekes |
Date: 8/12/2010 |
Subject: Re: Kflop / Kanalog |
Hi Arthur,
Strange. What about a G1 or G2 move of for example 1 inch?
What is your Mach3 Motor Tuning - Resolution, Vel, Accel, Units?
Maybe you should send your Mach3 XML file.
TK
Group: DynoMotion |
Message: 581 |
From: aeunson@btinternet.com |
Date: 8/13/2010 |
Subject: Re: Kflop / Kanalog |
Hi Tom
I have it working.
Given a G0 x200 it will drive to 200. G0 x100 it will return to 100 and G0 x0 it returns to zero.
G1 & G2 are very very slow.
But it is slow so I posted the xml file into the files section to see where I have gone wrong.
All the motors are the same but the x & y axis are different gearing so I should be able to figure them out now.
It going to be a couple of weeks before I get working on the full table but I am very pleased I can now drive a single motor with mach3 and prove it will work.
Regards
Arthur
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Arthur,
>
> Strange. What about a G1 or G2 move of for example 1 inch?
>
> What is your Mach3 Motor Tuning - Resolution, Vel, Accel, Units?
>
> Maybe you should send your Mach3 XML file.
>
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Thu, August 12, 2010 4:40:40 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
> Â
>
> Hi Tom,
>
> Nearly there but not quite.
>
> When I Jog in mach it will continue to run in one direction untill I jog in the
> opposite direction where it will still keep running.
>
> Here is the program I ended up with.
>
> Regards
>
> Arthur
>
> ch0->InputMode=ENCODER_MODE;
> ch0->OutputMode=DAC_SERVO_MODE;
> ch0->Vel=10000;
> ch0->Accel=100000;
> ch0->Jerk=1000000;
> ch0->P=0.8000000119209;
> ch0->I=9.999999747379e-005;
> ch0->D=0;
> ch0->FFAccel=0;
> ch0->FFVel=0;
> ch0->MaxI=200;
> ch0->MaxErr=200;
> ch0->MaxOutput=2047;
> ch0->DeadBandGain=1;
> ch0->DeadBandRange=0;
> ch0->InputChan0=0;
> ch0->InputChan1=1;
> ch0->OutputChan0=0;
> ch0->OutputChan1=1;
> ch0->MasterAxis=-1;
> ch0->LimitSwitchOptions=0x0;
> ch0->InputGain0=-1;
> ch0->InputGain1=1;
> ch0->InputOffset0=0;
> ch0->InputOffset1=0;
> ch0->OutputGain=1;
> ch0->OutputOffset=0;
> ch0->SlaveGain=1;
> ch0->BacklashMode=BACKLASH_OFF;
> ch0->BacklashAmount=0;
> ch0->BacklashRate=0;
> ch0->invDistPerCycle=1;
> ch0->Lead=0;
> ch0->MaxFollowingError=4000;
> ch0->StepperAmplitude=250;
>
> ch0->iir[0].B0=1;
> ch0->iir[0].B1=0;
> ch0->iir[0].B2=0;
> ch0->iir[0].A1=0;
> ch0->iir[0].A2=0;
>
> ch0->iir[1].B0=1;
> ch0->iir[1].B1=0;
> ch0->iir[1].B2=0;
> ch0->iir[1].A1=0;
> ch0->iir[1].A2=0;
>
> ch0->iir[2].B0=1;
> ch0->iir[2].B1=0;
> ch0->iir[2].B2=0;
> ch0->iir[2].A1=0;
> ch0->iir[2].A2=0;
>
> EnableAxisDest (0,ch0->Position);
>
> DefineCordSystem (0,-1,-1,-1);
>
> return 0;
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Arthur,
> >
> > I didn't see a new file uploaded.
> >
> > Now that you have one axis working you are ready to try driving it from Mach3.Â
> >
> > You need to make a C program that Mach can use to configure KFlop.
> >
> > Follow the procedure described here (you are now at step 4)
> >
> > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> >
> > Start with some Example Initialization program such as InitStepDir3Axis.c.Â
> > Paste your configuration over the ch0 settings. Remove all the settings for
> >ch1
> >
> > and ch2.
> >
> > Change the DefineCoordSystem call to just define one ch0 axis in the system as
> >X
> >
> > by:Â
> >
> >
> > DefineCoordSystem(0,-1,-1,-1);
> >
> > Also change the Enable statement from:
> >
> > EnableAxisDest(0,0);
> >
> > to
> >
> > EnableAxisDest(0, ch0->Position);
> >
> > (this will enable the axis and servo at the current encoder position, otherwise
> >
> > you might get a rapid motion to a destination of zero)
> >
> > Let us know how far you get.
> >
> > Regards
> > TK
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Thu, August 12, 2010 1:35:53 AM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> > Â
> >
> > Thanks Tom,
> >
> > Your support of your product is excellent and I now feel I am getting
> >somewhere.
> >
> > I increased the P gain upto 1.7 where I could just feel the motor oscillate so
>
> > reduced it to 0.8.
> >
> > The I gain was set to 0.0001,any higher and it seemd to create an overshoot of
>
> > the output.
> >
> > I also noticed to get a full revolution I had to increase the move to 4096.
> >
> > Again I have uploaded the results to the files section.
> >
> > Before I move everything out to the workshop and connect up the machine for
> >real
> >
> > I would like to be able to understand getting Mach to work on the single axis I
> >
> > have here in the office. I will also connect up home and limit switches.
> >
> > Regards
> >
> > Arthur
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Congratulations Arthur!ÃÂ You now have a closed servo loop.ÃÂ
> > >
> > > Since moving 1000 counts results in 1/2 rev, then the resolution must be
> >about
> >
> >
> > > 2000 counts/rev.
> > >
> > > Of course your motion is very slow and sloppy so the next step is to optimize
> >
> > > the servo tuning.ÃÂ Please see:
> > >
> > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > >
> > > Notice in your case, the output (green plot and right side scale)ÃÂ is
> >clamping
> >
> > >at
> > >
> > > only 20 DAC counts (~0.1V).ÃÂ This is because of our max allowed error (200)
>
> > >and
> > >
> > > very lowÃÂ P gain of 0.1.
> > >
> > > Regards
> > > TK
> > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 582 |
From: Tom Kerekes |
Date: 8/13/2010 |
Subject: Re: Kflop / Kanalog |
Hi Arthur,
I don't see anything specifically wrong in the Mach3Mill.xml file. It seems to work for me. Apparently Mach3 has an issue where it saves the XML file into whatever the current directory is when you exit which I think can result in lost changes and confusion. Also sometimes the units inexplicably change from inches to mm mode, so check if somehow your base units somehow got switched to mm.
Maybe check what feed rate you specified?
I see you set the resolution to 4096 which is the number of encoder counts/motor rev. Usually mills have a lead screw with about 5 turns/inch so the correct value would probably be more like 5x4096.
Let us know how it goes and thanks for participating in the Group.
TK
Group: DynoMotion |
Message: 583 |
From: aeunson@btinternet.com |
Date: 8/13/2010 |
Subject: Re: Kflop / Kanalog |
Hi Tom
I usually work in these strange things called mm. I also forgot to check what the feed was set at
I have not connected the motor to the leadscrew yet so will need to take that into account when I do.
Thanks again Tom.
Regards
Art
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Arthur,
>
> I don't see anything specifically wrong in the Mach3Mill.xml file. It seems to
> work for me. Apparently Mach3 has an issue where it saves the XML file into
> whatever the current directory is when you exit which I think can result in lost
> changes and confusion. Also sometimes the units inexplicably change from inches
> to mm mode, so check if somehow your base units somehow got switched to mm.
>
> Maybe check what feed rate you specified?
>
> I see you set the resolution to 4096 which is the number of encoder counts/motor
> rev. Usually mills have a lead screw with about 5 turns/inch so the correct
> value would probably be more like 5x4096.
>
> Let us know how it goes and thanks for participating in the Group.
>
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Fri, August 13, 2010 8:26:29 AM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
> Â
> Hi Tom
>
> I have it working.
> Given a G0 x200 it will drive to 200. G0 x100 it will return to 100 and G0 x0 it
> returns to zero.
> G1 & G2 are very very slow.
>
> But it is slow so I posted the xml file into the files section to see where I
> have gone wrong.
>
> All the motors are the same but the x & y axis are different gearing so I should
> be able to figure them out now.
>
> It going to be a couple of weeks before I get working on the full table but I am
> very pleased I can now drive a single motor with mach3 and prove it will work.
>
> Regards
>
> Arthur
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Arthur,
> >
> > Strange.ÃÂ What about a G1 or G2 move of for example 1 inch?
> >
> > What is your Mach3 Motor Tuning - Resolution, Vel, Accel, Units?
> >
> > Maybe you should send your Mach3 XML file.
> >
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Thu, August 12, 2010 4:40:40 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> > ÃÂ
> >
> > Hi Tom,
> >
> > Nearly there but not quite.
> >
> > When I Jog in mach it will continue to run in one direction untill I jog in the
> >
> > opposite direction where it will still keep running.
> >
> > Here is the program I ended up with.
> >
> > Regards
> >
> > Arthur
> >
> > ch0->InputMode=ENCODER_MODE;
> > ch0->OutputMode=DAC_SERVO_MODE;
> > ch0->Vel=10000;
> > ch0->Accel=100000;
> > ch0->Jerk=1000000;
> > ch0->P=0.8000000119209;
> > ch0->I=9.999999747379e-005;
> > ch0->D=0;
> > ch0->FFAccel=0;
> > ch0->FFVel=0;
> > ch0->MaxI=200;
> > ch0->MaxErr=200;
> > ch0->MaxOutput=2047;
> > ch0->DeadBandGain=1;
> > ch0->DeadBandRange=0;
> > ch0->InputChan0=0;
> > ch0->InputChan1=1;
> > ch0->OutputChan0=0;
> > ch0->OutputChan1=1;
> > ch0->MasterAxis=-1;
> > ch0->LimitSwitchOptions=0x0;
> > ch0->InputGain0=-1;
> > ch0->InputGain1=1;
> > ch0->InputOffset0=0;
> > ch0->InputOffset1=0;
> > ch0->OutputGain=1;
> > ch0->OutputOffset=0;
> > ch0->SlaveGain=1;
> > ch0->BacklashMode=BACKLASH_OFF;
> > ch0->BacklashAmount=0;
> > ch0->BacklashRate=0;
> > ch0->invDistPerCycle=1;
> > ch0->Lead=0;
> > ch0->MaxFollowingError=4000;
> > ch0->StepperAmplitude=250;
> >
> > ch0->iir[0].B0=1;
> > ch0->iir[0].B1=0;
> > ch0->iir[0].B2=0;
> > ch0->iir[0].A1=0;
> > ch0->iir[0].A2=0;
> >
> > ch0->iir[1].B0=1;
> > ch0->iir[1].B1=0;
> > ch0->iir[1].B2=0;
> > ch0->iir[1].A1=0;
> > ch0->iir[1].A2=0;
> >
> > ch0->iir[2].B0=1;
> > ch0->iir[2].B1=0;
> > ch0->iir[2].B2=0;
> > ch0->iir[2].A1=0;
> > ch0->iir[2].A2=0;
> >
> > EnableAxisDest (0,ch0->Position);
> >
> > DefineCordSystem (0,-1,-1,-1);
> >
> > return 0;
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Arthur,
> > >
> > > I didn't see a new file uploaded.
> > >
> > > Now that you have one axis working you are ready to try driving it from
> >Mach3.ÃÂ
> >
> > >
> > > You need to make a C program that Mach can use to configure KFlop.
> > >
> > > Follow the procedure described here (you are now at step 4)
> > >
> > > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> > >
> > > Start with some Example Initialization program such as InitStepDir3Axis.c.ÃÂ
>
> > > Paste yourÃÂ configuration over the ch0 settings.ÃÂ Remove all the settings
> >for
> >
> > >ch1
> > >
> > > and ch2.
> > >
> > > Change the DefineCoordSystemÃÂ call to just define one ch0 axis in the system
> >as
> >
> > >X
> > >
> > > by:ÃÂ
> > >
> > >
> > > DefineCoordSystem(0,-1,-1,-1);
> > >
> > > Also change the Enable statement from:
> > >
> > > EnableAxisDest(0,0);
> > >
> > > to
> > >
> > > EnableAxisDest(0, ch0->Position);
> > >
> > > (this will enable the axis and servo at the current encoder position,
> >otherwise
> >
> > >
> > > you might get a rapid motion to a destination of zero)
> > >
> > > Let us know how far you get.
> > >
> > > Regards
> > > TK
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Thu, August 12, 2010 1:35:53 AM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > > ÃÂ
> > >
> > > Thanks Tom,
> > >
> > > Your support of your product is excellent and I now feel I am getting
> > >somewhere.
> > >
> > > I increased the P gain upto 1.7 where I could just feel the motor oscillate
> >so
> >
> >
> > > reduced it to 0.8.
> > >
> > > The I gain was set to 0.0001,any higher and it seemd to create an overshoot
> >of
> >
> >
> > > the output.
> > >
> > > I also noticed to get a full revolution I had to increase the move to 4096.
> > >
> > > Again I have uploaded the results to the files section.
> > >
> > > Before I move everything out to the workshop and connect up the machine for
> > >real
> > >
> > > I would like to be able to understand getting Mach to work on the single axis
> >I
> >
> > >
> > > have here in the office. I will also connect up home and limit switches.
> > >
> > > Regards
> > >
> > > Arthur
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Congratulations Arthur!ÃâàYou now have a closed servo loop.ÃâÃÂ
> > > >
> > > > Since moving 1000 counts results in 1/2 rev, then the resolution must be
> > >about
> > >
> > >
> > > > 2000 counts/rev.
> > > >
> > > > Of course your motion is very slow and sloppy so the next step is to
> >optimize
> >
> > >
> > > > the servo tuning.ÃâàPlease see:
> > > >
> > > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > > >
> > > > Notice in your case, the output (green plot and right side scale)Ãâàis
> > >clamping
> > >
> > > >at
> > > >
> > > > only 20 DAC counts (~0.1V).ÃâàThis is because of our max allowed error
> >(200)
> >
> >
> > > >and
> > > >
> > > > very lowÃâàP gain of 0.1.
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 584 |
From: aeunson@btinternet.com |
Date: 8/13/2010 |
Subject: Re: Kflop / Kanalog |
Hi Tom
This motor is attached to a ballscrew which has 2 turns to the inch.
Is this changed in kmotion and anothe c program written?
Regards
Art
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Arthur,
>
> I don't see anything specifically wrong in the Mach3Mill.xml file. It seems to
> work for me. Apparently Mach3 has an issue where it saves the XML file into
> whatever the current directory is when you exit which I think can result in lost
> changes and confusion. Also sometimes the units inexplicably change from inches
> to mm mode, so check if somehow your base units somehow got switched to mm.
>
> Maybe check what feed rate you specified?
>
> I see you set the resolution to 4096 which is the number of encoder counts/motor
> rev. Usually mills have a lead screw with about 5 turns/inch so the correct
> value would probably be more like 5x4096.
>
> Let us know how it goes and thanks for participating in the Group.
>
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Fri, August 13, 2010 8:26:29 AM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
> Â
> Hi Tom
>
> I have it working.
> Given a G0 x200 it will drive to 200. G0 x100 it will return to 100 and G0 x0 it
> returns to zero.
> G1 & G2 are very very slow.
>
> But it is slow so I posted the xml file into the files section to see where I
> have gone wrong.
>
> All the motors are the same but the x & y axis are different gearing so I should
> be able to figure them out now.
>
> It going to be a couple of weeks before I get working on the full table but I am
> very pleased I can now drive a single motor with mach3 and prove it will work.
>
> Regards
>
> Arthur
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Arthur,
> >
> > Strange.ÃÂ What about a G1 or G2 move of for example 1 inch?
> >
> > What is your Mach3 Motor Tuning - Resolution, Vel, Accel, Units?
> >
> > Maybe you should send your Mach3 XML file.
> >
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Thu, August 12, 2010 4:40:40 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> > ÃÂ
> >
> > Hi Tom,
> >
> > Nearly there but not quite.
> >
> > When I Jog in mach it will continue to run in one direction untill I jog in the
> >
> > opposite direction where it will still keep running.
> >
> > Here is the program I ended up with.
> >
> > Regards
> >
> > Arthur
> >
> > ch0->InputMode=ENCODER_MODE;
> > ch0->OutputMode=DAC_SERVO_MODE;
> > ch0->Vel=10000;
> > ch0->Accel=100000;
> > ch0->Jerk=1000000;
> > ch0->P=0.8000000119209;
> > ch0->I=9.999999747379e-005;
> > ch0->D=0;
> > ch0->FFAccel=0;
> > ch0->FFVel=0;
> > ch0->MaxI=200;
> > ch0->MaxErr=200;
> > ch0->MaxOutput=2047;
> > ch0->DeadBandGain=1;
> > ch0->DeadBandRange=0;
> > ch0->InputChan0=0;
> > ch0->InputChan1=1;
> > ch0->OutputChan0=0;
> > ch0->OutputChan1=1;
> > ch0->MasterAxis=-1;
> > ch0->LimitSwitchOptions=0x0;
> > ch0->InputGain0=-1;
> > ch0->InputGain1=1;
> > ch0->InputOffset0=0;
> > ch0->InputOffset1=0;
> > ch0->OutputGain=1;
> > ch0->OutputOffset=0;
> > ch0->SlaveGain=1;
> > ch0->BacklashMode=BACKLASH_OFF;
> > ch0->BacklashAmount=0;
> > ch0->BacklashRate=0;
> > ch0->invDistPerCycle=1;
> > ch0->Lead=0;
> > ch0->MaxFollowingError=4000;
> > ch0->StepperAmplitude=250;
> >
> > ch0->iir[0].B0=1;
> > ch0->iir[0].B1=0;
> > ch0->iir[0].B2=0;
> > ch0->iir[0].A1=0;
> > ch0->iir[0].A2=0;
> >
> > ch0->iir[1].B0=1;
> > ch0->iir[1].B1=0;
> > ch0->iir[1].B2=0;
> > ch0->iir[1].A1=0;
> > ch0->iir[1].A2=0;
> >
> > ch0->iir[2].B0=1;
> > ch0->iir[2].B1=0;
> > ch0->iir[2].B2=0;
> > ch0->iir[2].A1=0;
> > ch0->iir[2].A2=0;
> >
> > EnableAxisDest (0,ch0->Position);
> >
> > DefineCordSystem (0,-1,-1,-1);
> >
> > return 0;
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Arthur,
> > >
> > > I didn't see a new file uploaded.
> > >
> > > Now that you have one axis working you are ready to try driving it from
> >Mach3.ÃÂ
> >
> > >
> > > You need to make a C program that Mach can use to configure KFlop.
> > >
> > > Follow the procedure described here (you are now at step 4)
> > >
> > > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> > >
> > > Start with some Example Initialization program such as InitStepDir3Axis.c.ÃÂ
>
> > > Paste yourÃÂ configuration over the ch0 settings.ÃÂ Remove all the settings
> >for
> >
> > >ch1
> > >
> > > and ch2.
> > >
> > > Change the DefineCoordSystemÃÂ call to just define one ch0 axis in the system
> >as
> >
> > >X
> > >
> > > by:ÃÂ
> > >
> > >
> > > DefineCoordSystem(0,-1,-1,-1);
> > >
> > > Also change the Enable statement from:
> > >
> > > EnableAxisDest(0,0);
> > >
> > > to
> > >
> > > EnableAxisDest(0, ch0->Position);
> > >
> > > (this will enable the axis and servo at the current encoder position,
> >otherwise
> >
> > >
> > > you might get a rapid motion to a destination of zero)
> > >
> > > Let us know how far you get.
> > >
> > > Regards
> > > TK
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Thu, August 12, 2010 1:35:53 AM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > > ÃÂ
> > >
> > > Thanks Tom,
> > >
> > > Your support of your product is excellent and I now feel I am getting
> > >somewhere.
> > >
> > > I increased the P gain upto 1.7 where I could just feel the motor oscillate
> >so
> >
> >
> > > reduced it to 0.8.
> > >
> > > The I gain was set to 0.0001,any higher and it seemd to create an overshoot
> >of
> >
> >
> > > the output.
> > >
> > > I also noticed to get a full revolution I had to increase the move to 4096.
> > >
> > > Again I have uploaded the results to the files section.
> > >
> > > Before I move everything out to the workshop and connect up the machine for
> > >real
> > >
> > > I would like to be able to understand getting Mach to work on the single axis
> >I
> >
> > >
> > > have here in the office. I will also connect up home and limit switches.
> > >
> > > Regards
> > >
> > > Arthur
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Congratulations Arthur!ÃâàYou now have a closed servo loop.ÃâÃÂ
> > > >
> > > > Since moving 1000 counts results in 1/2 rev, then the resolution must be
> > >about
> > >
> > >
> > > > 2000 counts/rev.
> > > >
> > > > Of course your motion is very slow and sloppy so the next step is to
> >optimize
> >
> > >
> > > > the servo tuning.ÃâàPlease see:
> > > >
> > > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > > >
> > > > Notice in your case, the output (green plot and right side scale)Ãâàis
> > >clamping
> > >
> > > >at
> > > >
> > > > only 20 DAC counts (~0.1V).ÃâàThis is because of our max allowed error
> >(200)
> >
> >
> > > >and
> > > >
> > > > very lowÃâàP gain of 0.1.
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 585 |
From: aeunson@btinternet.com |
Date: 8/13/2010 |
Subject: Re: Kflop / Kanalog |
Hi Tom,
This motor is conected to a ballscrew which is 2 turns to the inch.
Do I change this in kmotion and re-write the c prog?
Regards
Art
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Arthur,
>
> I don't see anything specifically wrong in the Mach3Mill.xml file. It seems to
> work for me. Apparently Mach3 has an issue where it saves the XML file into
> whatever the current directory is when you exit which I think can result in lost
> changes and confusion. Also sometimes the units inexplicably change from inches
> to mm mode, so check if somehow your base units somehow got switched to mm.
>
> Maybe check what feed rate you specified?
>
> I see you set the resolution to 4096 which is the number of encoder counts/motor
> rev. Usually mills have a lead screw with about 5 turns/inch so the correct
> value would probably be more like 5x4096.
>
> Let us know how it goes and thanks for participating in the Group.
>
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Fri, August 13, 2010 8:26:29 AM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
> Â
> Hi Tom
>
> I have it working.
> Given a G0 x200 it will drive to 200. G0 x100 it will return to 100 and G0 x0 it
> returns to zero.
> G1 & G2 are very very slow.
>
> But it is slow so I posted the xml file into the files section to see where I
> have gone wrong.
>
> All the motors are the same but the x & y axis are different gearing so I should
> be able to figure them out now.
>
> It going to be a couple of weeks before I get working on the full table but I am
> very pleased I can now drive a single motor with mach3 and prove it will work.
>
> Regards
>
> Arthur
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Arthur,
> >
> > Strange.ÃÂ What about a G1 or G2 move of for example 1 inch?
> >
> > What is your Mach3 Motor Tuning - Resolution, Vel, Accel, Units?
> >
> > Maybe you should send your Mach3 XML file.
> >
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Thu, August 12, 2010 4:40:40 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> > ÃÂ
> >
> > Hi Tom,
> >
> > Nearly there but not quite.
> >
> > When I Jog in mach it will continue to run in one direction untill I jog in the
> >
> > opposite direction where it will still keep running.
> >
> > Here is the program I ended up with.
> >
> > Regards
> >
> > Arthur
> >
> > ch0->InputMode=ENCODER_MODE;
> > ch0->OutputMode=DAC_SERVO_MODE;
> > ch0->Vel=10000;
> > ch0->Accel=100000;
> > ch0->Jerk=1000000;
> > ch0->P=0.8000000119209;
> > ch0->I=9.999999747379e-005;
> > ch0->D=0;
> > ch0->FFAccel=0;
> > ch0->FFVel=0;
> > ch0->MaxI=200;
> > ch0->MaxErr=200;
> > ch0->MaxOutput=2047;
> > ch0->DeadBandGain=1;
> > ch0->DeadBandRange=0;
> > ch0->InputChan0=0;
> > ch0->InputChan1=1;
> > ch0->OutputChan0=0;
> > ch0->OutputChan1=1;
> > ch0->MasterAxis=-1;
> > ch0->LimitSwitchOptions=0x0;
> > ch0->InputGain0=-1;
> > ch0->InputGain1=1;
> > ch0->InputOffset0=0;
> > ch0->InputOffset1=0;
> > ch0->OutputGain=1;
> > ch0->OutputOffset=0;
> > ch0->SlaveGain=1;
> > ch0->BacklashMode=BACKLASH_OFF;
> > ch0->BacklashAmount=0;
> > ch0->BacklashRate=0;
> > ch0->invDistPerCycle=1;
> > ch0->Lead=0;
> > ch0->MaxFollowingError=4000;
> > ch0->StepperAmplitude=250;
> >
> > ch0->iir[0].B0=1;
> > ch0->iir[0].B1=0;
> > ch0->iir[0].B2=0;
> > ch0->iir[0].A1=0;
> > ch0->iir[0].A2=0;
> >
> > ch0->iir[1].B0=1;
> > ch0->iir[1].B1=0;
> > ch0->iir[1].B2=0;
> > ch0->iir[1].A1=0;
> > ch0->iir[1].A2=0;
> >
> > ch0->iir[2].B0=1;
> > ch0->iir[2].B1=0;
> > ch0->iir[2].B2=0;
> > ch0->iir[2].A1=0;
> > ch0->iir[2].A2=0;
> >
> > EnableAxisDest (0,ch0->Position);
> >
> > DefineCordSystem (0,-1,-1,-1);
> >
> > return 0;
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Arthur,
> > >
> > > I didn't see a new file uploaded.
> > >
> > > Now that you have one axis working you are ready to try driving it from
> >Mach3.ÃÂ
> >
> > >
> > > You need to make a C program that Mach can use to configure KFlop.
> > >
> > > Follow the procedure described here (you are now at step 4)
> > >
> > > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> > >
> > > Start with some Example Initialization program such as InitStepDir3Axis.c.ÃÂ
>
> > > Paste yourÃÂ configuration over the ch0 settings.ÃÂ Remove all the settings
> >for
> >
> > >ch1
> > >
> > > and ch2.
> > >
> > > Change the DefineCoordSystemÃÂ call to just define one ch0 axis in the system
> >as
> >
> > >X
> > >
> > > by:ÃÂ
> > >
> > >
> > > DefineCoordSystem(0,-1,-1,-1);
> > >
> > > Also change the Enable statement from:
> > >
> > > EnableAxisDest(0,0);
> > >
> > > to
> > >
> > > EnableAxisDest(0, ch0->Position);
> > >
> > > (this will enable the axis and servo at the current encoder position,
> >otherwise
> >
> > >
> > > you might get a rapid motion to a destination of zero)
> > >
> > > Let us know how far you get.
> > >
> > > Regards
> > > TK
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Thu, August 12, 2010 1:35:53 AM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > > ÃÂ
> > >
> > > Thanks Tom,
> > >
> > > Your support of your product is excellent and I now feel I am getting
> > >somewhere.
> > >
> > > I increased the P gain upto 1.7 where I could just feel the motor oscillate
> >so
> >
> >
> > > reduced it to 0.8.
> > >
> > > The I gain was set to 0.0001,any higher and it seemd to create an overshoot
> >of
> >
> >
> > > the output.
> > >
> > > I also noticed to get a full revolution I had to increase the move to 4096.
> > >
> > > Again I have uploaded the results to the files section.
> > >
> > > Before I move everything out to the workshop and connect up the machine for
> > >real
> > >
> > > I would like to be able to understand getting Mach to work on the single axis
> >I
> >
> > >
> > > have here in the office. I will also connect up home and limit switches.
> > >
> > > Regards
> > >
> > > Arthur
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Congratulations Arthur!ÃâàYou now have a closed servo loop.ÃâÃÂ
> > > >
> > > > Since moving 1000 counts results in 1/2 rev, then the resolution must be
> > >about
> > >
> > >
> > > > 2000 counts/rev.
> > > >
> > > > Of course your motion is very slow and sloppy so the next step is to
> >optimize
> >
> > >
> > > > the servo tuning.ÃâàPlease see:
> > > >
> > > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > > >
> > > > Notice in your case, the output (green plot and right side scale)Ãâàis
> > >clamping
> > >
> > > >at
> > > >
> > > > only 20 DAC counts (~0.1V).ÃâàThis is because of our max allowed error
> >(200)
> >
> >
> > > >and
> > > >
> > > > very lowÃâàP gain of 0.1.
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 586 |
From: Tom Kerekes |
Date: 8/13/2010 |
Subject: Re: Kflop / Kanalog |
Hi Art,
No. In KMotion everything is in counts. You would change Mach3 "Motor Tuning". Since you work in mm. The number of counts/mm would be:
4096*2/25.4=322.5196 counts/mm
Regards
TK
Group: DynoMotion |
Message: 587 |
From: aeunson@btinternet.com |
Date: 8/14/2010 |
Subject: Re: Kflop / Kanalog |
Hi Tom,
I realised that just before going to bed last night and all is working well.
However I did have to set steps per to 322.5 to get the DRO to read correctly as it was reading low with the calculated value.
I think I can now wait untill I fully complete the machine before I take this any further when I will probably be back with lots of questions.
Once I get it up and running I will post a video of it running but this will be a few weeks
Thanks for yor help. You certainly support your product well.
Best regards
Art
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Art,
>
> No. In KMotion everything is in counts. You would change Mach3 "Motor
> Tuning". Since you work in mm. The number of counts/mm would be:
>
> 4096*2/25.4=322.5196 counts/mm
>
> Regards
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Fri, August 13, 2010 4:50:05 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
> Â
>
> Hi Tom,
>
> This motor is conected to a ballscrew which is 2 turns to the inch.
>
> Do I change this in kmotion and re-write the c prog?
>
> Regards
>
> Art
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Arthur,
> >
> > I don't see anything specifically wrong in the Mach3Mill.xml file.ÃÂ It seems
> >to
> >
> > work for me.ÃÂ Apparently Mach3 has an issue where it saves the XML file into
> > whatever the current directory is when you exit which I think can result in
> >lost
> >
> > changes and confusion.ÃÂ Also sometimes the units inexplicably change from
> >inches
> >
> > to mm mode, so check if somehow your base units somehow got switched to mm.
> >
> > Maybe check what feed rate you specified?
> >
> > I see you set the resolution to 4096 which is the number of encoder
> >counts/motor
> >
> > rev.ÃÂ Usually mills have a lead screw with about 5 turns/inch so the correct
> > value would probably be more like 5x4096.
> >
> > Let us know how it goes and thanks for participating in the Group.
> >
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Fri, August 13, 2010 8:26:29 AM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> > ÃÂ
> > Hi Tom
> >
> > I have it working.
> > Given a G0 x200 it will drive to 200. G0 x100 it will return to 100 and G0 x0
> >it
> >
> > returns to zero.
> > G1 & G2 are very very slow.
> >
> > But it is slow so I posted the xml file into the files section to see where I
> > have gone wrong.
> >
> > All the motors are the same but the x & y axis are different gearing so I
> >should
> >
> > be able to figure them out now.
> >
> > It going to be a couple of weeks before I get working on the full table but I
> >am
> >
> > very pleased I can now drive a single motor with mach3 and prove it will work.
> >
> > Regards
> >
> > Arthur
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Arthur,
> > >
> > > Strange.ÃâàWhat about a G1 or G2 move of for example 1 inch?
> > >
> > > What is your Mach3 Motor Tuning - Resolution, Vel, Accel, Units?
> > >
> > > Maybe you should send your Mach3 XML file.
> > >
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Thu, August 12, 2010 4:40:40 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > > ÃâÃÂ
> > >
> > > Hi Tom,
> > >
> > > Nearly there but not quite.
> > >
> > > When I Jog in mach it will continue to run in one direction untill I jog in
> >the
> >
> > >
> > > opposite direction where it will still keep running.
> > >
> > > Here is the program I ended up with.
> > >
> > > Regards
> > >
> > > Arthur
> > >
> > > ch0->InputMode=ENCODER_MODE;
> > > ch0->OutputMode=DAC_SERVO_MODE;
> > > ch0->Vel=10000;
> > > ch0->Accel=100000;
> > > ch0->Jerk=1000000;
> > > ch0->P=0.8000000119209;
> > > ch0->I=9.999999747379e-005;
> > > ch0->D=0;
> > > ch0->FFAccel=0;
> > > ch0->FFVel=0;
> > > ch0->MaxI=200;
> > > ch0->MaxErr=200;
> > > ch0->MaxOutput=2047;
> > > ch0->DeadBandGain=1;
> > > ch0->DeadBandRange=0;
> > > ch0->InputChan0=0;
> > > ch0->InputChan1=1;
> > > ch0->OutputChan0=0;
> > > ch0->OutputChan1=1;
> > > ch0->MasterAxis=-1;
> > > ch0->LimitSwitchOptions=0x0;
> > > ch0->InputGain0=-1;
> > > ch0->InputGain1=1;
> > > ch0->InputOffset0=0;
> > > ch0->InputOffset1=0;
> > > ch0->OutputGain=1;
> > > ch0->OutputOffset=0;
> > > ch0->SlaveGain=1;
> > > ch0->BacklashMode=BACKLASH_OFF;
> > > ch0->BacklashAmount=0;
> > > ch0->BacklashRate=0;
> > > ch0->invDistPerCycle=1;
> > > ch0->Lead=0;
> > > ch0->MaxFollowingError=4000;
> > > ch0->StepperAmplitude=250;
> > >
> > > ch0->iir[0].B0=1;
> > > ch0->iir[0].B1=0;
> > > ch0->iir[0].B2=0;
> > > ch0->iir[0].A1=0;
> > > ch0->iir[0].A2=0;
> > >
> > > ch0->iir[1].B0=1;
> > > ch0->iir[1].B1=0;
> > > ch0->iir[1].B2=0;
> > > ch0->iir[1].A1=0;
> > > ch0->iir[1].A2=0;
> > >
> > > ch0->iir[2].B0=1;
> > > ch0->iir[2].B1=0;
> > > ch0->iir[2].B2=0;
> > > ch0->iir[2].A1=0;
> > > ch0->iir[2].A2=0;
> > >
> > > EnableAxisDest (0,ch0->Position);
> > >
> > > DefineCordSystem (0,-1,-1,-1);
> > >
> > > return 0;
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Arthur,
> > > >
> > > > I didn't see a new file uploaded.
> > > >
> > > > Now that you have one axis working you are ready to try driving it from
> > >Mach3.ÃâÃÂ
> > >
> > > >
> > > > You need to make a C program that Mach can use to configure KFlop.
> > > >
> > > > Follow the procedure described here (you are now at step 4)
> > > >
> > > > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> > > >
> > > > Start with some Example Initialization program such as
> >InitStepDir3Axis.c.ÃâÃÂ
> >
> >
> > > > Paste yourÃâàconfiguration over the ch0 settings.ÃâàRemove all the
> >settings
> >
> > >for
> > >
> > > >ch1
> > > >
> > > > and ch2.
> > > >
> > > > Change the DefineCoordSystemÃâàcall to just define one ch0 axis in the
> >system
> >
> > >as
> > >
> > > >X
> > > >
> > > > by:ÃâÃÂ
> > > >
> > > >
> > > > DefineCoordSystem(0,-1,-1,-1);
> > > >
> > > > Also change the Enable statement from:
> > > >
> > > > EnableAxisDest(0,0);
> > > >
> > > > to
> > > >
> > > > EnableAxisDest(0, ch0->Position);
> > > >
> > > > (this will enable the axis and servo at the current encoder position,
> > >otherwise
> > >
> > > >
> > > > you might get a rapid motion to a destination of zero)
> > > >
> > > > Let us know how far you get.
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Thu, August 12, 2010 1:35:53 AM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃâÃÂ
> > > >
> > > > Thanks Tom,
> > > >
> > > > Your support of your product is excellent and I now feel I am getting
> > > >somewhere.
> > > >
> > > > I increased the P gain upto 1.7 where I could just feel the motor oscillate
> >
> > >so
> > >
> > >
> > > > reduced it to 0.8.
> > > >
> > > > The I gain was set to 0.0001,any higher and it seemd to create an overshoot
> >
> > >of
> > >
> > >
> > > > the output.
> > > >
> > > > I also noticed to get a full revolution I had to increase the move to
> 4096.
> > > >
> > > > Again I have uploaded the results to the files section.
> > > >
> > > > Before I move everything out to the workshop and connect up the machine for
> >
> > > >real
> > > >
> > > > I would like to be able to understand getting Mach to work on the single
> >axis
> >
> > >I
> > >
> > > >
> > > > have here in the office. I will also connect up home and limit switches.
> > > >
> > > > Regards
> > > >
> > > > Arthur
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Congratulations Arthur!ÃÆ'ââ¬Å¡ÃâàYou now have a closed servo
> >loop.ÃÆ'ââ¬Å¡ÃâÃÂ
> >
> > > > >
> > > > > Since moving 1000 counts results in 1/2 rev, then the resolution must be
>
> > > >about
> > > >
> > > >
> > > > > 2000 counts/rev.
> > > > >
> > > > > Of course your motion is very slow and sloppy so the next step is to
> > >optimize
> > >
> > > >
> > > > > the servo tuning.ÃÆ'ââ¬Å¡ÃâàPlease see:
> > > > >
> > > > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > > > >
> > > > > Notice in your case, the output (green plot and right side
> >scale)ÃÆ'ââ¬Å¡Ãâàis
> >
> > > >clamping
> > > >
> > > > >at
> > > > >
> > > > > only 20 DAC counts (~0.1V).ÃÆ'ââ¬Å¡ÃâàThis is because of our max allowed
> >error
> >
> > >(200)
> > >
> > >
> > > > >and
> > > > >
> > > > > very lowÃÆ'ââ¬Å¡ÃâàP gain of 0.1.
> > > > >
> > > > > Regards
> > > > > TK
> > > > >
> > > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 667 |
From: aeunson@btinternet.com |
Date: 9/27/2010 |
Subject: Re: Kflop / Kanalog |
Hi Tom
I have finaly managed to get some time on the router.
I have the x & y axis connected and the motor tuning all set up so that I can accurately drive the table in Mach a set amount but if I try and drive it anymore than 45mm at a time the table stops and I get this message: "dynamotion status all axes disabled"
Any idea where I have gone wrong?
Art
--- In DynoMotion@yahoogroups.com, "aeunson@..." <aeunson@...> wrote:
>
>
> Hi Tom,
>
> I realised that just before going to bed last night and all is working well.
>
> However I did have to set steps per to 322.5 to get the DRO to read correctly as it was reading low with the calculated value.
>
> I think I can now wait untill I fully complete the machine before I take this any further when I will probably be back with lots of questions.
>
> Once I get it up and running I will post a video of it running but this will be a few weeks
>
> Thanks for yor help. You certainly support your product well.
>
> Best regards
>
> Art
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Art,
> >
> > No. In KMotion everything is in counts. You would change Mach3 "Motor
> > Tuning". Since you work in mm. The number of counts/mm would be:
> >
> > 4096*2/25.4=322.5196 counts/mm
> >
> > Regards
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Fri, August 13, 2010 4:50:05 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> > Â
> >
> > Hi Tom,
> >
> > This motor is conected to a ballscrew which is 2 turns to the inch.
> >
> > Do I change this in kmotion and re-write the c prog?
> >
> > Regards
> >
> > Art
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Arthur,
> > >
> > > I don't see anything specifically wrong in the Mach3Mill.xml file.ÃÂ It seems
> > >to
> > >
> > > work for me.ÃÂ Apparently Mach3 has an issue where it saves the XML file into
> > > whatever the current directory is when you exit which I think can result in
> > >lost
> > >
> > > changes and confusion.ÃÂ Also sometimes the units inexplicably change from
> > >inches
> > >
> > > to mm mode, so check if somehow your base units somehow got switched to mm.
> > >
> > > Maybe check what feed rate you specified?
> > >
> > > I see you set the resolution to 4096 which is the number of encoder
> > >counts/motor
> > >
> > > rev.ÃÂ Usually mills have a lead screw with about 5 turns/inch so the correct
> > > value would probably be more like 5x4096.
> > >
> > > Let us know how it goes and thanks for participating in the Group.
> > >
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Fri, August 13, 2010 8:26:29 AM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > > ÃÂ
> > > Hi Tom
> > >
> > > I have it working.
> > > Given a G0 x200 it will drive to 200. G0 x100 it will return to 100 and G0 x0
> > >it
> > >
> > > returns to zero.
> > > G1 & G2 are very very slow.
> > >
> > > But it is slow so I posted the xml file into the files section to see where I
> > > have gone wrong.
> > >
> > > All the motors are the same but the x & y axis are different gearing so I
> > >should
> > >
> > > be able to figure them out now.
> > >
> > > It going to be a couple of weeks before I get working on the full table but I
> > >am
> > >
> > > very pleased I can now drive a single motor with mach3 and prove it will work.
> > >
> > > Regards
> > >
> > > Arthur
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Arthur,
> > > >
> > > > Strange.ÃâàWhat about a G1 or G2 move of for example 1 inch?
> > > >
> > > > What is your Mach3 Motor Tuning - Resolution, Vel, Accel, Units?
> > > >
> > > > Maybe you should send your Mach3 XML file.
> > > >
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Thu, August 12, 2010 4:40:40 PM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃâÃÂ
> > > >
> > > > Hi Tom,
> > > >
> > > > Nearly there but not quite.
> > > >
> > > > When I Jog in mach it will continue to run in one direction untill I jog in
> > >the
> > >
> > > >
> > > > opposite direction where it will still keep running.
> > > >
> > > > Here is the program I ended up with.
> > > >
> > > > Regards
> > > >
> > > > Arthur
> > > >
> > > > ch0->InputMode=ENCODER_MODE;
> > > > ch0->OutputMode=DAC_SERVO_MODE;
> > > > ch0->Vel=10000;
> > > > ch0->Accel=100000;
> > > > ch0->Jerk=1000000;
> > > > ch0->P=0.8000000119209;
> > > > ch0->I=9.999999747379e-005;
> > > > ch0->D=0;
> > > > ch0->FFAccel=0;
> > > > ch0->FFVel=0;
> > > > ch0->MaxI=200;
> > > > ch0->MaxErr=200;
> > > > ch0->MaxOutput=2047;
> > > > ch0->DeadBandGain=1;
> > > > ch0->DeadBandRange=0;
> > > > ch0->InputChan0=0;
> > > > ch0->InputChan1=1;
> > > > ch0->OutputChan0=0;
> > > > ch0->OutputChan1=1;
> > > > ch0->MasterAxis=-1;
> > > > ch0->LimitSwitchOptions=0x0;
> > > > ch0->InputGain0=-1;
> > > > ch0->InputGain1=1;
> > > > ch0->InputOffset0=0;
> > > > ch0->InputOffset1=0;
> > > > ch0->OutputGain=1;
> > > > ch0->OutputOffset=0;
> > > > ch0->SlaveGain=1;
> > > > ch0->BacklashMode=BACKLASH_OFF;
> > > > ch0->BacklashAmount=0;
> > > > ch0->BacklashRate=0;
> > > > ch0->invDistPerCycle=1;
> > > > ch0->Lead=0;
> > > > ch0->MaxFollowingError=4000;
> > > > ch0->StepperAmplitude=250;
> > > >
> > > > ch0->iir[0].B0=1;
> > > > ch0->iir[0].B1=0;
> > > > ch0->iir[0].B2=0;
> > > > ch0->iir[0].A1=0;
> > > > ch0->iir[0].A2=0;
> > > >
> > > > ch0->iir[1].B0=1;
> > > > ch0->iir[1].B1=0;
> > > > ch0->iir[1].B2=0;
> > > > ch0->iir[1].A1=0;
> > > > ch0->iir[1].A2=0;
> > > >
> > > > ch0->iir[2].B0=1;
> > > > ch0->iir[2].B1=0;
> > > > ch0->iir[2].B2=0;
> > > > ch0->iir[2].A1=0;
> > > > ch0->iir[2].A2=0;
> > > >
> > > > EnableAxisDest (0,ch0->Position);
> > > >
> > > > DefineCordSystem (0,-1,-1,-1);
> > > >
> > > > return 0;
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Arthur,
> > > > >
> > > > > I didn't see a new file uploaded.
> > > > >
> > > > > Now that you have one axis working you are ready to try driving it from
> > > >Mach3.ÃâÃÂ
> > > >
> > > > >
> > > > > You need to make a C program that Mach can use to configure KFlop.
> > > > >
> > > > > Follow the procedure described here (you are now at step 4)
> > > > >
> > > > > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> > > > >
> > > > > Start with some Example Initialization program such as
> > >InitStepDir3Axis.c.ÃâÃÂ
> > >
> > >
> > > > > Paste yourÃâàconfiguration over the ch0 settings.ÃâàRemove all the
> > >settings
> > >
> > > >for
> > > >
> > > > >ch1
> > > > >
> > > > > and ch2.
> > > > >
> > > > > Change the DefineCoordSystemÃâàcall to just define one ch0 axis in the
> > >system
> > >
> > > >as
> > > >
> > > > >X
> > > > >
> > > > > by:ÃâÃÂ
> > > > >
> > > > >
> > > > > DefineCoordSystem(0,-1,-1,-1);
> > > > >
> > > > > Also change the Enable statement from:
> > > > >
> > > > > EnableAxisDest(0,0);
> > > > >
> > > > > to
> > > > >
> > > > > EnableAxisDest(0, ch0->Position);
> > > > >
> > > > > (this will enable the axis and servo at the current encoder position,
> > > >otherwise
> > > >
> > > > >
> > > > > you might get a rapid motion to a destination of zero)
> > > > >
> > > > > Let us know how far you get.
> > > > >
> > > > > Regards
> > > > > TK
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Thu, August 12, 2010 1:35:53 AM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃâÃÂ
> > > > >
> > > > > Thanks Tom,
> > > > >
> > > > > Your support of your product is excellent and I now feel I am getting
> > > > >somewhere.
> > > > >
> > > > > I increased the P gain upto 1.7 where I could just feel the motor oscillate
> > >
> > > >so
> > > >
> > > >
> > > > > reduced it to 0.8.
> > > > >
> > > > > The I gain was set to 0.0001,any higher and it seemd to create an overshoot
> > >
> > > >of
> > > >
> > > >
> > > > > the output.
> > > > >
> > > > > I also noticed to get a full revolution I had to increase the move to
> > 4096.
> > > > >
> > > > > Again I have uploaded the results to the files section.
> > > > >
> > > > > Before I move everything out to the workshop and connect up the machine for
> > >
> > > > >real
> > > > >
> > > > > I would like to be able to understand getting Mach to work on the single
> > >axis
> > >
> > > >I
> > > >
> > > > >
> > > > > have here in the office. I will also connect up home and limit switches.
> > > > >
> > > > > Regards
> > > > >
> > > > > Arthur
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Congratulations Arthur!ÃÆ'ââ¬Å¡ÃâàYou now have a closed servo
> > >loop.ÃÆ'ââ¬Å¡ÃâÃÂ
> > >
> > > > > >
> > > > > > Since moving 1000 counts results in 1/2 rev, then the resolution must be
> >
> > > > >about
> > > > >
> > > > >
> > > > > > 2000 counts/rev.
> > > > > >
> > > > > > Of course your motion is very slow and sloppy so the next step is to
> > > >optimize
> > > >
> > > > >
> > > > > > the servo tuning.ÃÆ'ââ¬Å¡ÃâàPlease see:
> > > > > >
> > > > > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > > > > >
> > > > > > Notice in your case, the output (green plot and right side
> > >scale)ÃÆ'ââ¬Å¡Ãâàis
> > >
> > > > >clamping
> > > > >
> > > > > >at
> > > > > >
> > > > > > only 20 DAC counts (~0.1V).ÃÆ'ââ¬Å¡ÃâàThis is because of our max allowed
> > >error
> > >
> > > >(200)
> > > >
> > > >
> > > > > >and
> > > > > >
> > > > > > very lowÃÆ'ââ¬Å¡ÃâàP gain of 0.1.
> > > > > >
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 668 |
From: Tom Kerekes |
Date: 9/27/2010 |
Subject: Re: Kflop / Kanalog |
Hi Art,
Is there a message in the KMotion Console screen such as "Following error..."?
Before attempting to use Mach3 you should tune the motors using the KMotion Step Response Screen and verify that you can make moves at your needed speeds and accuracies. What are your following errors for a 45mm move?
Regards
TK
Group: DynoMotion |
Message: 669 |
From: aeunson@btinternet.com |
Date: 9/27/2010 |
Subject: Re: Kflop / Kanalog |
Tom,
There is the message in the console "Following error 0 axis disabled
I did tune them in the response screen before running Mach a few weeks ago.
Regards
Art
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Art,
>
> Is there a message in the KMotion Console screen such as "Following error..."?
>
> Before attempting to use Mach3 you should tune the motors using the KMotion Step
> Response Screen and verify that you can make moves at your needed speeds and
> accuracies. What are your following errors for a 45mm move?
>
> Regards
> TKÂ
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Mon, September 27, 2010 10:56:07 AM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
> Â
> Hi Tom
>
> I have finaly managed to get some time on the router.
>
> I have the x & y axis connected and the motor tuning all set up so that I can
> accurately drive the table in Mach a set amount but if I try and drive it
> anymore than 45mm at a time the table stops and I get this message: "dynamotion
> status all axes disabled"
>
> Any idea where I have gone wrong?
>
> Art
>
> --- In DynoMotion@yahoogroups.com, "aeunson@" <aeunson@> wrote:
> >
> >
> > Hi Tom,
> >
> > I realised that just before going to bed last night and all is working well.
> >
> > However I did have to set steps per to 322.5 to get the DRO to read correctly
> >as it was reading low with the calculated value.
> >
> > I think I can now wait untill I fully complete the machine before I take this
> >any further when I will probably be back with lots of questions.
> >
> > Once I get it up and running I will post a video of it running but this will be
> >a few weeks
> >
> > Thanks for yor help. You certainly support your product well.
> >
> > Best regards
> >
> > Art
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Art,
> > >
> > > No.ÃÂ In KMotion everything is in counts.ÃÂ You would change Mach3 "Motor
> > > Tuning".ÃÂ Since you work in mm.ÃÂ The number of counts/mm would be:
> > >
> > > 4096*2/25.4=322.5196 counts/mm
> > >
> > > Regards
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Fri, August 13, 2010 4:50:05 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > > ÃÂ
> > >
> > > Hi Tom,
> > >
> > > This motor is conected to a ballscrew which is 2 turns to the inch.
> > >
> > > Do I change this in kmotion and re-write the c prog?
> > >
> > > Regards
> > >
> > > Art
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Arthur,
> > > >
> > > > I don't see anything specifically wrong in the Mach3Mill.xml file.ÃâàIt
> >seems
> >
> > > >to
> > > >
> > > > work for me.ÃâàApparently Mach3 has an issue where it saves the XML file
> >into
> >
> > > > whatever the current directory is when you exit which I think can result in
> >
> > > >lost
> > > >
> > > > changes and confusion.ÃâàAlso sometimes the units inexplicably change
> >from
> >
> > > >inches
> > > >
> > > > to mm mode, so check if somehow your base units somehow got switched to
> mm.
> > > >
> > > > Maybe check what feed rate you specified?
> > > >
> > > > I see you set the resolution to 4096 which is the number of encoder
> > > >counts/motor
> > > >
> > > > rev.ÃâàUsually mills have a lead screw with about 5 turns/inch so the
> >correct
> >
> > > > value would probably be more like 5x4096.
> > > >
> > > > Let us know how it goes and thanks for participating in the Group.
> > > >
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Fri, August 13, 2010 8:26:29 AM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃâÃÂ
> > > > Hi Tom
> > > >
> > > > I have it working.
> > > > Given a G0 x200 it will drive to 200. G0 x100 it will return to 100 and G0
> >x0
> >
> > > >it
> > > >
> > > > returns to zero.
> > > > G1 & G2 are very very slow.
> > > >
> > > > But it is slow so I posted the xml file into the files section to see where
> >I
> >
> > > > have gone wrong.
> > > >
> > > > All the motors are the same but the x & y axis are different gearing so I
> > > >should
> > > >
> > > > be able to figure them out now.
> > > >
> > > > It going to be a couple of weeks before I get working on the full table but
> >I
> >
> > > >am
> > > >
> > > > very pleased I can now drive a single motor with mach3 and prove it will
> >work.
> > > >
> > > > Regards
> > > >
> > > > Arthur
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Arthur,
> > > > >
> > > > > Strange.ÃÆ'ââ¬Å¡ÃâàWhat about a G1 or G2 move of for example 1 inch?
> > > > >
> > > > > What is your Mach3 Motor Tuning - Resolution, Vel, Accel, Units?
> > > > >
> > > > > Maybe you should send your Mach3 XML file.
> > > > >
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Thu, August 12, 2010 4:40:40 PM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > >
> > > > > Hi Tom,
> > > > >
> > > > > Nearly there but not quite.
> > > > >
> > > > > When I Jog in mach it will continue to run in one direction untill I jog
> >in
> >
> > > >the
> > > >
> > > > >
> > > > > opposite direction where it will still keep running.
> > > > >
> > > > > Here is the program I ended up with.
> > > > >
> > > > > Regards
> > > > >
> > > > > Arthur
> > > > >
> > > > > ch0->InputMode=ENCODER_MODE;
> > > > > ch0->OutputMode=DAC_SERVO_MODE;
> > > > > ch0->Vel=10000;
> > > > > ch0->Accel=100000;
> > > > > ch0->Jerk=1000000;
> > > > > ch0->P=0.8000000119209;
> > > > > ch0->I=9.999999747379e-005;
> > > > > ch0->D=0;
> > > > > ch0->FFAccel=0;
> > > > > ch0->FFVel=0;
> > > > > ch0->MaxI=200;
> > > > > ch0->MaxErr=200;
> > > > > ch0->MaxOutput=2047;
> > > > > ch0->DeadBandGain=1;
> > > > > ch0->DeadBandRange=0;
> > > > > ch0->InputChan0=0;
> > > > > ch0->InputChan1=1;
> > > > > ch0->OutputChan0=0;
> > > > > ch0->OutputChan1=1;
> > > > > ch0->MasterAxis=-1;
> > > > > ch0->LimitSwitchOptions=0x0;
> > > > > ch0->InputGain0=-1;
> > > > > ch0->InputGain1=1;
> > > > > ch0->InputOffset0=0;
> > > > > ch0->InputOffset1=0;
> > > > > ch0->OutputGain=1;
> > > > > ch0->OutputOffset=0;
> > > > > ch0->SlaveGain=1;
> > > > > ch0->BacklashMode=BACKLASH_OFF;
> > > > > ch0->BacklashAmount=0;
> > > > > ch0->BacklashRate=0;
> > > > > ch0->invDistPerCycle=1;
> > > > > ch0->Lead=0;
> > > > > ch0->MaxFollowingError=4000;
> > > > > ch0->StepperAmplitude=250;
> > > > >
> > > > > ch0->iir[0].B0=1;
> > > > > ch0->iir[0].B1=0;
> > > > > ch0->iir[0].B2=0;
> > > > > ch0->iir[0].A1=0;
> > > > > ch0->iir[0].A2=0;
> > > > >
> > > > > ch0->iir[1].B0=1;
> > > > > ch0->iir[1].B1=0;
> > > > > ch0->iir[1].B2=0;
> > > > > ch0->iir[1].A1=0;
> > > > > ch0->iir[1].A2=0;
> > > > >
> > > > > ch0->iir[2].B0=1;
> > > > > ch0->iir[2].B1=0;
> > > > > ch0->iir[2].B2=0;
> > > > > ch0->iir[2].A1=0;
> > > > > ch0->iir[2].A2=0;
> > > > >
> > > > > EnableAxisDest (0,ch0->Position);
> > > > >
> > > > > DefineCordSystem (0,-1,-1,-1);
> > > > >
> > > > > return 0;
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Arthur,
> > > > > >
> > > > > > I didn't see a new file uploaded.
> > > > > >
> > > > > > Now that you have one axis working you are ready to try driving it from
> >
> > > > >Mach3.ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > >
> > > > > >
> > > > > > You need to make a C program that Mach can use to configure KFlop.
> > > > > >
> > > > > > Follow the procedure described here (you are now at step 4)
> > > > > >
> > > > > > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> > > > > >
> > > > > > Start with some Example Initialization program such as
> > > >InitStepDir3Axis.c.ÃÆ'ââ¬Å¡ÃâÃÂ
> > > >
> > > >
> > > > > > Paste yourÃÆ'ââ¬Å¡Ãâàconfiguration over the ch0 settings.ÃÆ'ââ¬Å¡ÃâàRemove
> >all the
> >
> > > >settings
> > > >
> > > > >for
> > > > >
> > > > > >ch1
> > > > > >
> > > > > > and ch2.
> > > > > >
> > > > > > Change the DefineCoordSystemÃÆ'ââ¬Å¡Ãâàcall to just define one ch0 axis
> >in the
> >
> > > >system
> > > >
> > > > >as
> > > > >
> > > > > >X
> > > > > >
> > > > > > by:ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > >
> > > > > >
> > > > > > DefineCoordSystem(0,-1,-1,-1);
> > > > > >
> > > > > > Also change the Enable statement from:
> > > > > >
> > > > > > EnableAxisDest(0,0);
> > > > > >
> > > > > > to
> > > > > >
> > > > > > EnableAxisDest(0, ch0->Position);
> > > > > >
> > > > > > (this will enable the axis and servo at the current encoder position,
> > > > >otherwise
> > > > >
> > > > > >
> > > > > > you might get a rapid motion to a destination of zero)
> > > > > >
> > > > > > Let us know how far you get.
> > > > > >
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: "aeunson@" <aeunson@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Thu, August 12, 2010 1:35:53 AM
> > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > >
> > > > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > >
> > > > > > Thanks Tom,
> > > > > >
> > > > > > Your support of your product is excellent and I now feel I am getting
> > > > > >somewhere.
> > > > > >
> > > > > > I increased the P gain upto 1.7 where I could just feel the motor
> >oscillate
> >
> > > >
> > > > >so
> > > > >
> > > > >
> > > > > > reduced it to 0.8.
> > > > > >
> > > > > > The I gain was set to 0.0001,any higher and it seemd to create an
> >overshoot
> >
> > > >
> > > > >of
> > > > >
> > > > >
> > > > > > the output.
> > > > > >
> > > > > > I also noticed to get a full revolution I had to increase the move to
> > > 4096.
> > > > > >
> > > > > > Again I have uploaded the results to the files section.
> > > > > >
> > > > > > Before I move everything out to the workshop and connect up the machine
> >for
> >
> > > >
> > > > > >real
> > > > > >
> > > > > > I would like to be able to understand getting Mach to work on the
> >single
> >
> > > >axis
> > > >
> > > > >I
> > > > >
> > > > > >
> > > > > > have here in the office. I will also connect up home and limit
> >switches.
> > > > > >
> > > > > > Regards
> > > > > >
> > > > > > Arthur
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Congratulations Arthur!ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàYou now have a closed
> >servo
> >
> > > >loop.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > >
> > > > > > >
> > > > > > > Since moving 1000 counts results in 1/2 rev, then the resolution must
> >be
> >
> > >
> > > > > >about
> > > > > >
> > > > > >
> > > > > > > 2000 counts/rev.
> > > > > > >
> > > > > > > Of course your motion is very slow and sloppy so the next step is to
>
> > > > >optimize
> > > > >
> > > > > >
> > > > > > > the servo tuning.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàPlease see:
> > > > > > >
> > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > > > > > >
> > > > > > > Notice in your case, the output (green plot and right side
> > > >scale)ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ãâàis
> > > >
> > > > > >clamping
> > > > > >
> > > > > > >at
> > > > > > >
> > > > > > > only 20 DAC counts (~0.1V).ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàThis is because of
> >our max allowed
> >
> > > >error
> > > >
> > > > >(200)
> > > > >
> > > > >
> > > > > > >and
> > > > > > >
> > > > > > > very lowÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàP gain of 0.1.
> > > > > > >
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 670 |
From: Tom Kerekes |
Date: 9/27/2010 |
Subject: Re: Kflop / Kanalog |
Art,
Well you need to test the motion on the Step Response Screen for the same type of motion you are attempting under Mach3 to see a respective response. For example making a small/slow move from the Step Response screen may show small following errors, but a large, faster, higher acceleration move under Mach3 may have large following errors.
#1 What Velocity and Acceleration do you have Mach3 "Tuning" Set at?
#2 What following error setting are you using?
#3 Mach3 motions are not Jerk Limited so set the KMotion Jerk value 100X the acceleration value to see a similar motion.
#4 convert the Mach3 Vel and Accel values to encoder counts (multiply by counts per mm)
#5 plot a 90mm motion (Command, Position, Output)
TK
Group: DynoMotion |
Message: 671 |
From: aeunson@btinternet.com |
Date: 9/27/2010 |
Subject: Re: Kflop / Kanalog |
Tom
I have uploaded the mach motor tuning screenshot and the kmotion screen shot.
The servo with linear actuator connected is 7mm / motor rev. the resolution is 4096 per rev.
If the velocity in mach is any more than 5000 I get a follower error.
At 5000 the movement of the table is quite slow but accurate.
I also converted the mach figures as advised and ran them in kmotion where the table seemed to move even slower.
Please advise where you think I have gone wrong.
Regards
Art
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Art,
>
> Well you need to test the motion on the Step Response Screen for the same type
> of motion you are attempting under Mach3 to see a respective response. For
> example making a small/slow move from the Step Response screen may show small
> following errors, but a large, faster, higher acceleration move under Mach3 may
> have large following errors.Â
>
> #1 What Velocity and Acceleration do you have Mach3 "Tuning" Set at?
>
> #2 What following error setting are you using?
>
> #3 Mach3 motions are not Jerk Limited so set the KMotion Jerk value 100X the
> acceleration value to see a similar motion.
>
> #4 convert the Mach3 Vel and Accel values to encoder counts (multiply by counts
> per mm)
>
> #5 plot a 90mm motion (Command, Position, Output)
>
> TK
>
>
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Mon, September 27, 2010 1:05:52 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
> Â
>
> Tom,
>
> There is the message in the console "Following error 0 axis disabled
>
> I did tune them in the response screen before running Mach a few weeks ago.
>
> Regards
>
> Art
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Art,
> >
> > Is there a message in the KMotion Console screen such as "Following error..."?
> >
> > Before attempting to use Mach3 you should tune the motors using the KMotion
> >Step
> >
> > Response Screen and verify that you can make moves at your needed speeds and
> > accuracies.ÃÂ What are your following errors for a 45mm move?
> >
> > Regards
> > TKÃÂ
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Mon, September 27, 2010 10:56:07 AM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> > ÃÂ
> > Hi Tom
> >
> > I have finaly managed to get some time on the router.
> >
> > I have the x & y axis connected and the motor tuning all set up so that I can
> > accurately drive the table in Mach a set amount but if I try and drive it
> > anymore than 45mm at a time the table stops and I get this message: "dynamotion
> >
> > status all axes disabled"
> >
> > Any idea where I have gone wrong?
> >
> > Art
> >
> > --- In DynoMotion@yahoogroups.com, "aeunson@" <aeunson@> wrote:
> > >
> > >
> > > Hi Tom,
> > >
> > > I realised that just before going to bed last night and all is working well.
> > >
> > > However I did have to set steps per to 322.5 to get the DRO to read correctly
> >
> > >as it was reading low with the calculated value.
> > >
> > > I think I can now wait untill I fully complete the machine before I take this
> >
> > >any further when I will probably be back with lots of questions.
> > >
> > > Once I get it up and running I will post a video of it running but this will
> >be
> >
> > >a few weeks
> > >
> > > Thanks for yor help. You certainly support your product well.
> > >
> > > Best regards
> > >
> > > Art
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Art,
> > > >
> > > > No.ÃâàIn KMotion everything is in counts.ÃâàYou would change Mach3
> >"Motor
> >
> > > > Tuning".ÃâàSince you work in mm.ÃâàThe number of counts/mm would be:
> > > >
> > > > 4096*2/25.4=322.5196 counts/mm
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Fri, August 13, 2010 4:50:05 PM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃâÃÂ
> > > >
> > > > Hi Tom,
> > > >
> > > > This motor is conected to a ballscrew which is 2 turns to the inch.
> > > >
> > > > Do I change this in kmotion and re-write the c prog?
> > > >
> > > > Regards
> > > >
> > > > Art
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Arthur,
> > > > >
> > > > > I don't see anything specifically wrong in the Mach3Mill.xml
> >file.ÃÆ'ââ¬Å¡ÃâàIt
> >
> > >seems
> > >
> > > > >to
> > > > >
> > > > > work for me.ÃÆ'ââ¬Å¡ÃâàApparently Mach3 has an issue where it saves the
> >XML file
> >
> > >into
> > >
> > > > > whatever the current directory is when you exit which I think can result
> >in
> >
> > >
> > > > >lost
> > > > >
> > > > > changes and confusion.ÃÆ'ââ¬Å¡ÃâàAlso sometimes the units inexplicably
> >change
> >
> > >from
> > >
> > > > >inches
> > > > >
> > > > > to mm mode, so check if somehow your base units somehow got switched to
> > mm.
> > > > >
> > > > > Maybe check what feed rate you specified?
> > > > >
> > > > > I see you set the resolution to 4096 which is the number of encoder
> > > > >counts/motor
> > > > >
> > > > > rev.ÃÆ'ââ¬Å¡ÃâàUsually mills have a lead screw with about 5 turns/inch so
> >the
> >
> > >correct
> > >
> > > > > value would probably be more like 5x4096.
> > > > >
> > > > > Let us know how it goes and thanks for participating in the Group.
> > > > >
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Fri, August 13, 2010 8:26:29 AM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > Hi Tom
> > > > >
> > > > > I have it working.
> > > > > Given a G0 x200 it will drive to 200. G0 x100 it will return to 100 and
> >G0
> >
> > >x0
> > >
> > > > >it
> > > > >
> > > > > returns to zero.
> > > > > G1 & G2 are very very slow.
> > > > >
> > > > > But it is slow so I posted the xml file into the files section to see
> >where
> >
> > >I
> > >
> > > > > have gone wrong.
> > > > >
> > > > > All the motors are the same but the x & y axis are different gearing so I
> >
> > > > >should
> > > > >
> > > > > be able to figure them out now.
> > > > >
> > > > > It going to be a couple of weeks before I get working on the full table
> >but
> >
> > >I
> > >
> > > > >am
> > > > >
> > > > > very pleased I can now drive a single motor with mach3 and prove it will
>
> > >work.
> > > > >
> > > > > Regards
> > > > >
> > > > > Arthur
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Arthur,
> > > > > >
> > > > > > Strange.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàWhat about a G1 or G2 move of for example
> >1 inch?
> > > > > >
> > > > > > What is your Mach3 Motor Tuning - Resolution, Vel, Accel, Units?
> > > > > >
> > > > > > Maybe you should send your Mach3 XML file.
> > > > > >
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: "aeunson@" <aeunson@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Thu, August 12, 2010 4:40:40 PM
> > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > >
> > > > > > ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > >
> > > > > > Hi Tom,
> > > > > >
> > > > > > Nearly there but not quite.
> > > > > >
> > > > > > When I Jog in mach it will continue to run in one direction untill I
> >jog
> >
> > >in
> > >
> > > > >the
> > > > >
> > > > > >
> > > > > > opposite direction where it will still keep running.
> > > > > >
> > > > > > Here is the program I ended up with.
> > > > > >
> > > > > > Regards
> > > > > >
> > > > > > Arthur
> > > > > >
> > > > > > ch0->InputMode=ENCODER_MODE;
> > > > > > ch0->OutputMode=DAC_SERVO_MODE;
> > > > > > ch0->Vel=10000;
> > > > > > ch0->Accel=100000;
> > > > > > ch0->Jerk=1000000;
> > > > > > ch0->P=0.8000000119209;
> > > > > > ch0->I=9.999999747379e-005;
> > > > > > ch0->D=0;
> > > > > > ch0->FFAccel=0;
> > > > > > ch0->FFVel=0;
> > > > > > ch0->MaxI=200;
> > > > > > ch0->MaxErr=200;
> > > > > > ch0->MaxOutput=2047;
> > > > > > ch0->DeadBandGain=1;
> > > > > > ch0->DeadBandRange=0;
> > > > > > ch0->InputChan0=0;
> > > > > > ch0->InputChan1=1;
> > > > > > ch0->OutputChan0=0;
> > > > > > ch0->OutputChan1=1;
> > > > > > ch0->MasterAxis=-1;
> > > > > > ch0->LimitSwitchOptions=0x0;
> > > > > > ch0->InputGain0=-1;
> > > > > > ch0->InputGain1=1;
> > > > > > ch0->InputOffset0=0;
> > > > > > ch0->InputOffset1=0;
> > > > > > ch0->OutputGain=1;
> > > > > > ch0->OutputOffset=0;
> > > > > > ch0->SlaveGain=1;
> > > > > > ch0->BacklashMode=BACKLASH_OFF;
> > > > > > ch0->BacklashAmount=0;
> > > > > > ch0->BacklashRate=0;
> > > > > > ch0->invDistPerCycle=1;
> > > > > > ch0->Lead=0;
> > > > > > ch0->MaxFollowingError=4000;
> > > > > > ch0->StepperAmplitude=250;
> > > > > >
> > > > > > ch0->iir[0].B0=1;
> > > > > > ch0->iir[0].B1=0;
> > > > > > ch0->iir[0].B2=0;
> > > > > > ch0->iir[0].A1=0;
> > > > > > ch0->iir[0].A2=0;
> > > > > >
> > > > > > ch0->iir[1].B0=1;
> > > > > > ch0->iir[1].B1=0;
> > > > > > ch0->iir[1].B2=0;
> > > > > > ch0->iir[1].A1=0;
> > > > > > ch0->iir[1].A2=0;
> > > > > >
> > > > > > ch0->iir[2].B0=1;
> > > > > > ch0->iir[2].B1=0;
> > > > > > ch0->iir[2].B2=0;
> > > > > > ch0->iir[2].A1=0;
> > > > > > ch0->iir[2].A2=0;
> > > > > >
> > > > > > EnableAxisDest (0,ch0->Position);
> > > > > >
> > > > > > DefineCordSystem (0,-1,-1,-1);
> > > > > >
> > > > > > return 0;
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Arthur,
> > > > > > >
> > > > > > > I didn't see a new file uploaded.
> > > > > > >
> > > > > > > Now that you have one axis working you are ready to try driving it
> >from
> >
> > >
> > > > > >Mach3.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > >
> > > > > > >
> > > > > > > You need to make a C program that Mach can use to configure KFlop.
> > > > > > >
> > > > > > > Follow the procedure described here (you are now at step 4)
> > > > > > >
> > > > > > > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> > > > > > >
> > > > > > > Start with some Example Initialization program such as
> > > > >InitStepDir3Axis.c.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > >
> > > > >
> > > > > > > Paste yourÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ãâàconfiguration over the ch0
> >settings.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàRemove
> >
> > >all the
> > >
> > > > >settings
> > > > >
> > > > > >for
> > > > > >
> > > > > > >ch1
> > > > > > >
> > > > > > > and ch2.
> > > > > > >
> > > > > > > Change the DefineCoordSystemÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ãâàcall to just define
> >one ch0 axis
> >
> > >in the
> > >
> > > > >system
> > > > >
> > > > > >as
> > > > > >
> > > > > > >X
> > > > > > >
> > > > > > > by:ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > >
> > > > > > >
> > > > > > > DefineCoordSystem(0,-1,-1,-1);
> > > > > > >
> > > > > > > Also change the Enable statement from:
> > > > > > >
> > > > > > > EnableAxisDest(0,0);
> > > > > > >
> > > > > > > to
> > > > > > >
> > > > > > > EnableAxisDest(0, ch0->Position);
> > > > > > >
> > > > > > > (this will enable the axis and servo at the current encoder position,
> >
> > > > > >otherwise
> > > > > >
> > > > > > >
> > > > > > > you might get a rapid motion to a destination of zero)
> > > > > > >
> > > > > > > Let us know how far you get.
> > > > > > >
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Thu, August 12, 2010 1:35:53 AM
> > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > >
> > > > > > > ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > >
> > > > > > > Thanks Tom,
> > > > > > >
> > > > > > > Your support of your product is excellent and I now feel I am getting
> >
> > > > > > >somewhere.
> > > > > > >
> > > > > > > I increased the P gain upto 1.7 where I could just feel the motor
> > >oscillate
> > >
> > > > >
> > > > > >so
> > > > > >
> > > > > >
> > > > > > > reduced it to 0.8.
> > > > > > >
> > > > > > > The I gain was set to 0.0001,any higher and it seemd to create an
> > >overshoot
> > >
> > > > >
> > > > > >of
> > > > > >
> > > > > >
> > > > > > > the output.
> > > > > > >
> > > > > > > I also noticed to get a full revolution I had to increase the move to
> >
> > > > 4096.
> > > > > > >
> > > > > > > Again I have uploaded the results to the files section.
> > > > > > >
> > > > > > > Before I move everything out to the workshop and connect up the
> >machine
> >
> > >for
> > >
> > > > >
> > > > > > >real
> > > > > > >
> > > > > > > I would like to be able to understand getting Mach to work on the
> > >single
> > >
> > > > >axis
> > > > >
> > > > > >I
> > > > > >
> > > > > > >
> > > > > > > have here in the office. I will also connect up home and limit
> > >switches.
> > > > > > >
> > > > > > > Regards
> > > > > > >
> > > > > > > Arthur
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Congratulations Arthur!ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >You now have a closed
> >
> > >servo
> > >
> > > > >loop.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > >
> > > > > > > >
> > > > > > > > Since moving 1000 counts results in 1/2 rev, then the resolution
> >must
> >
> > >be
> > >
> > > >
> > > > > > >about
> > > > > > >
> > > > > > >
> > > > > > > > 2000 counts/rev.
> > > > > > > >
> > > > > > > > Of course your motion is very slow and sloppy so the next step is
> >to
> >
> >
> > > > > >optimize
> > > > > >
> > > > > > >
> > > > > > > > the servo tuning.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàPlease
> >see:
> > > > > > > >
> > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > > > > > > >
> > > > > > > > Notice in your case, the output (green plot and right side
> > > > >scale)ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ãâàis
> > > > >
> > > > > > >clamping
> > > > > > >
> > > > > > > >at
> > > > > > > >
> > > > > > > > only 20 DAC counts
> >(~0.1V).ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàThis is because of
> >
> > >our max allowed
> > >
> > > > >error
> > > > >
> > > > > >(200)
> > > > > >
> > > > > >
> > > > > > > >and
> > > > > > > >
> > > > > > > > very lowÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàP gain of 0.1.
> > > > > > > >
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 672 |
From: Tom Kerekes |
Date: 9/27/2010 |
Subject: Re: Kflop / Kanalog |
Hi Art,
Your Jerk setting is extremely low.
With a Jerk limit of only 3000 cnts/sec^3 and a max acceleration of 175542 cnts/sec^2 it would take:
175542/3000 = 58 seconds
before the acceleration would ramp up to the maximum you are specifying. Mach3 has no Jerk limit, it applies the full acceleration you specify instantly. So to see a similar motion that equates to what Mach3 is generating, set the Jerk to a much bigger number like 2e7. Then the acceleration will be fully applied in a few milliseconds:
175542/20000000 = 0.008 seconds.
There is also a mistake with the velocity. Mach3 specifies the max velocity per minute rather than per second so the velocity in counts/sec would be 48761 rather than 2925700.
After you make these two corrections the motion on the Step Response screen will be much faster and you will probably see larger following errors. You will then be able to tune the system and determine the real limitations of your system.
Regards
TK
Group: DynoMotion |
Message: 673 |
From: aeunson@btinternet.com |
Date: 9/28/2010 |
Subject: Re: Kflop / Kanalog |
Thanks Tom
I see that now you have explained it.
I have changed the paramaters as suggested and tried tuning the system.
To get the command and position to track I have increased the p gain to 1.2, this allows me to make a move upto 10000 before the output starts to distort.
Above 10000 the output on the return starts to distort so I then increased the feed forward V to 0.003. this let me increase the move to 90000 before the output distorts.
I then tried to increase the velocity but the output starts to distort again.
The x axis is 800mm and the movement still seems quite slow.
I am not sure if I am changing the correct parameters can you please advise.
I have uploaded some screenshots
Regards
Art
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Art,
>
> Your Jerk setting is extremely low.
>
> With a Jerk limit of only 3000 cnts/sec^3 and a max acceleration of 175542
> cnts/sec^2 it would take:
>
> 175542/3000 = 58 seconds
>
> before the acceleration would ramp up to the maximum you are specifying. Mach3
> has no Jerk limit, it applies the full acceleration you specify instantly. So
> to see a similar motion that equates to what Mach3 is generating, set the Jerk
> to a much bigger number like 2e7. Then the acceleration will be fully applied
> in a few milliseconds:
>
> 175542/20000000 = 0.008 seconds.
>
>
> There is also a mistake with the velocity. Mach3 specifies the max velocity per
> minute rather than per second so the velocity in counts/sec would be 48761
> rather than 2925700.
>
>
> After you make these two corrections the motion on the Step Response screen will
> be much faster and you will probably see larger following errors. You will then
> be able to tune the system and determine the real limitations of your system.
>
> Regards
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Mon, September 27, 2010 3:09:52 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
> Â
> Tom
>
> I have uploaded the mach motor tuning screenshot and the kmotion screen shot.
>
> The servo with linear actuator connected is 7mm / motor rev. the resolution is
> 4096 per rev.
>
> If the velocity in mach is any more than 5000 I get a follower error.
> At 5000 the movement of the table is quite slow but accurate.
>
> I also converted the mach figures as advised and ran them in kmotion where the
> table seemed to move even slower.
>
> Please advise where you think I have gone wrong.
>
> Regards
>
> Art
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Art,
> >
> > Well you need to test the motion on the Step Response Screen for the same type
>
> > of motion you are attempting under Mach3 to see a respective response.ÃÂ For
> > example making a small/slow move from the Step Response screen may show small
> > following errors, but a large, faster, higher acceleration move under Mach3 may
> >
> > have large following errors.ÃÂ
> >
> > #1 What Velocity and Acceleration do you have Mach3 "Tuning" Set at?
> >
> > #2 What following error setting are you using?
> >
> > #3 Mach3 motions are not Jerk LimitedÃÂ so set the KMotion Jerk value 100X the
> > acceleration value to see a similar motion.
> >
> > #4 convert the Mach3 Vel and Accel values to encoder counts (multiply by counts
> >
> > per mm)
> >
> > #5 plot a 90mm motion (Command, Position, Output)
> >
> > TK
> >
> >
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Mon, September 27, 2010 1:05:52 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> > ÃÂ
> >
> > Tom,
> >
> > There is the message in the console "Following error 0 axis disabled
> >
> > I did tune them in the response screen before running Mach a few weeks ago.
> >
> > Regards
> >
> > Art
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Art,
> > >
> > > Is there a message in the KMotion Console screen such as "Following
> >error..."?
> > >
> > > Before attempting to use Mach3 you should tune the motors using the KMotion
> > >Step
> > >
> > > Response Screen and verify that you can make moves at your needed speeds and
>
> > > accuracies.ÃâàWhat are your following errors for a 45mm move?
> > >
> > > Regards
> > > TKÃâÃÂ
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Mon, September 27, 2010 10:56:07 AM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > > ÃâÃÂ
> > > Hi Tom
> > >
> > > I have finaly managed to get some time on the router.
> > >
> > > I have the x & y axis connected and the motor tuning all set up so that I can
> >
> > > accurately drive the table in Mach a set amount but if I try and drive it
> > > anymore than 45mm at a time the table stops and I get this message:
> >"dynamotion
> >
> > >
> > > status all axes disabled"
> > >
> > > Any idea where I have gone wrong?
> > >
> > > Art
> > >
> > > --- In DynoMotion@yahoogroups.com, "aeunson@" <aeunson@> wrote:
> > > >
> > > >
> > > > Hi Tom,
> > > >
> > > > I realised that just before going to bed last night and all is working
> >well.
> > > >
> > > > However I did have to set steps per to 322.5 to get the DRO to read
> >correctly
> >
> > >
> > > >as it was reading low with the calculated value.
> > > >
> > > > I think I can now wait untill I fully complete the machine before I take
> >this
> >
> > >
> > > >any further when I will probably be back with lots of questions.
> > > >
> > > > Once I get it up and running I will post a video of it running but this
> >will
> >
> > >be
> > >
> > > >a few weeks
> > > >
> > > > Thanks for yor help. You certainly support your product well.
> > > >
> > > > Best regards
> > > >
> > > > Art
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Art,
> > > > >
> > > > > No.ÃÆ'ââ¬Å¡ÃâàIn KMotion everything is in counts.ÃÆ'ââ¬Å¡ÃâàYou would
> >change Mach3
> >
> > >"Motor
> > >
> > > > > Tuning".ÃÆ'ââ¬Å¡ÃâàSince you work in mm.ÃÆ'ââ¬Å¡ÃâàThe number of counts/mm
> >would be:
> > > > >
> > > > > 4096*2/25.4=322.5196 counts/mm
> > > > >
> > > > > Regards
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Fri, August 13, 2010 4:50:05 PM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > >
> > > > > Hi Tom,
> > > > >
> > > > > This motor is conected to a ballscrew which is 2 turns to the inch.
> > > > >
> > > > > Do I change this in kmotion and re-write the c prog?
> > > > >
> > > > > Regards
> > > > >
> > > > > Art
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Arthur,
> > > > > >
> > > > > > I don't see anything specifically wrong in the Mach3Mill.xml
> > >file.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàIt
> > >
> > > >seems
> > > >
> > > > > >to
> > > > > >
> > > > > > work for me.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàApparently Mach3 has an issue where it
> >saves the
> >
> > >XML file
> > >
> > > >into
> > > >
> > > > > > whatever the current directory is when you exit which I think can
> >result
> >
> > >in
> > >
> > > >
> > > > > >lost
> > > > > >
> > > > > > changes and confusion.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàAlso sometimes the units
> >inexplicably
> >
> > >change
> > >
> > > >from
> > > >
> > > > > >inches
> > > > > >
> > > > > > to mm mode, so check if somehow your base units somehow got switched to
> >
> > > mm.
> > > > > >
> > > > > > Maybe check what feed rate you specified?
> > > > > >
> > > > > > I see you set the resolution to 4096 which is the number of encoder
> > > > > >counts/motor
> > > > > >
> > > > > > rev.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàUsually mills have a lead screw with about 5
> >turns/inch so
> >
> > >the
> > >
> > > >correct
> > > >
> > > > > > value would probably be more like 5x4096.
> > > > > >
> > > > > > Let us know how it goes and thanks for participating in the Group.
> > > > > >
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: "aeunson@" <aeunson@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Fri, August 13, 2010 8:26:29 AM
> > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > >
> > > > > > ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > Hi Tom
> > > > > >
> > > > > > I have it working.
> > > > > > Given a G0 x200 it will drive to 200. G0 x100 it will return to 100 and
> >
> > >G0
> > >
> > > >x0
> > > >
> > > > > >it
> > > > > >
> > > > > > returns to zero.
> > > > > > G1 & G2 are very very slow.
> > > > > >
> > > > > > But it is slow so I posted the xml file into the files section to see
> > >where
> > >
> > > >I
> > > >
> > > > > > have gone wrong.
> > > > > >
> > > > > > All the motors are the same but the x & y axis are different gearing so
> >I
> >
> > >
> > > > > >should
> > > > > >
> > > > > > be able to figure them out now.
> > > > > >
> > > > > > It going to be a couple of weeks before I get working on the full table
> >
> > >but
> > >
> > > >I
> > > >
> > > > > >am
> > > > > >
> > > > > > very pleased I can now drive a single motor with mach3 and prove it
> >will
> >
> >
> > > >work.
> > > > > >
> > > > > > Regards
> > > > > >
> > > > > > Arthur
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Arthur,
> > > > > > >
> > > > > > > Strange.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàWhat about a G1 or
> >G2 move of for example
> >
> > >1 inch?
> > > > > > >
> > > > > > > What is your Mach3 Motor Tuning - Resolution, Vel, Accel, Units?
> > > > > > >
> > > > > > > Maybe you should send your Mach3 XML file.
> > > > > > >
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Thu, August 12, 2010 4:40:40 PM
> > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > >
> > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > >
> > > > > > > Hi Tom,
> > > > > > >
> > > > > > > Nearly there but not quite.
> > > > > > >
> > > > > > > When I Jog in mach it will continue to run in one direction untill I
>
> > >jog
> > >
> > > >in
> > > >
> > > > > >the
> > > > > >
> > > > > > >
> > > > > > > opposite direction where it will still keep running.
> > > > > > >
> > > > > > > Here is the program I ended up with.
> > > > > > >
> > > > > > > Regards
> > > > > > >
> > > > > > > Arthur
> > > > > > >
> > > > > > > ch0->InputMode=ENCODER_MODE;
> > > > > > > ch0->OutputMode=DAC_SERVO_MODE;
> > > > > > > ch0->Vel=10000;
> > > > > > > ch0->Accel=100000;
> > > > > > > ch0->Jerk=1000000;
> > > > > > > ch0->P=0.8000000119209;
> > > > > > > ch0->I=9.999999747379e-005;
> > > > > > > ch0->D=0;
> > > > > > > ch0->FFAccel=0;
> > > > > > > ch0->FFVel=0;
> > > > > > > ch0->MaxI=200;
> > > > > > > ch0->MaxErr=200;
> > > > > > > ch0->MaxOutput=2047;
> > > > > > > ch0->DeadBandGain=1;
> > > > > > > ch0->DeadBandRange=0;
> > > > > > > ch0->InputChan0=0;
> > > > > > > ch0->InputChan1=1;
> > > > > > > ch0->OutputChan0=0;
> > > > > > > ch0->OutputChan1=1;
> > > > > > > ch0->MasterAxis=-1;
> > > > > > > ch0->LimitSwitchOptions=0x0;
> > > > > > > ch0->InputGain0=-1;
> > > > > > > ch0->InputGain1=1;
> > > > > > > ch0->InputOffset0=0;
> > > > > > > ch0->InputOffset1=0;
> > > > > > > ch0->OutputGain=1;
> > > > > > > ch0->OutputOffset=0;
> > > > > > > ch0->SlaveGain=1;
> > > > > > > ch0->BacklashMode=BACKLASH_OFF;
> > > > > > > ch0->BacklashAmount=0;
> > > > > > > ch0->BacklashRate=0;
> > > > > > > ch0->invDistPerCycle=1;
> > > > > > > ch0->Lead=0;
> > > > > > > ch0->MaxFollowingError=4000;
> > > > > > > ch0->StepperAmplitude=250;
> > > > > > >
> > > > > > > ch0->iir[0].B0=1;
> > > > > > > ch0->iir[0].B1=0;
> > > > > > > ch0->iir[0].B2=0;
> > > > > > > ch0->iir[0].A1=0;
> > > > > > > ch0->iir[0].A2=0;
> > > > > > >
> > > > > > > ch0->iir[1].B0=1;
> > > > > > > ch0->iir[1].B1=0;
> > > > > > > ch0->iir[1].B2=0;
> > > > > > > ch0->iir[1].A1=0;
> > > > > > > ch0->iir[1].A2=0;
> > > > > > >
> > > > > > > ch0->iir[2].B0=1;
> > > > > > > ch0->iir[2].B1=0;
> > > > > > > ch0->iir[2].B2=0;
> > > > > > > ch0->iir[2].A1=0;
> > > > > > > ch0->iir[2].A2=0;
> > > > > > >
> > > > > > > EnableAxisDest (0,ch0->Position);
> > > > > > >
> > > > > > > DefineCordSystem (0,-1,-1,-1);
> > > > > > >
> > > > > > > return 0;
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Arthur,
> > > > > > > >
> > > > > > > > I didn't see a new file uploaded.
> > > > > > > >
> > > > > > > > Now that you have one axis working you are ready to try driving it
>
> > >from
> > >
> > > >
> > > > > > >Mach3.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > >
> > > > > > > >
> > > > > > > > You need to make a C program that Mach can use to configure KFlop.
> > > > > > > >
> > > > > > > > Follow the procedure described here (you are now at step 4)
> > > > > > > >
> > > > > > > > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> > > > > > > >
> > > > > > > > Start with some Example Initialization program such as
> > > > > >InitStepDir3Axis.c.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > >
> > > > > >
> > > > > > > > Paste yourÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ãâàconfiguration
> >over the ch0
> >
> > >settings.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàRemove
> > >
> > > >all the
> > > >
> > > > > >settings
> > > > > >
> > > > > > >for
> > > > > > >
> > > > > > > >ch1
> > > > > > > >
> > > > > > > > and ch2.
> > > > > > > >
> > > > > > > > Change the
> >DefineCoordSystemÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ãâàcall to just define
> >
> > >one ch0 axis
> > >
> > > >in the
> > > >
> > > > > >system
> > > > > >
> > > > > > >as
> > > > > > >
> > > > > > > >X
> > > > > > > >
> > > > > > > > by:ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > > >
> > > > > > > >
> > > > > > > > DefineCoordSystem(0,-1,-1,-1);
> > > > > > > >
> > > > > > > > Also change the Enable statement from:
> > > > > > > >
> > > > > > > > EnableAxisDest(0,0);
> > > > > > > >
> > > > > > > > to
> > > > > > > >
> > > > > > > > EnableAxisDest(0, ch0->Position);
> > > > > > > >
> > > > > > > > (this will enable the axis and servo at the current encoder
> >position,
> >
> > >
> > > > > > >otherwise
> > > > > > >
> > > > > > > >
> > > > > > > > you might get a rapid motion to a destination of zero)
> > > > > > > >
> > > > > > > > Let us know how far you get.
> > > > > > > >
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > >
> > > > > > > > ________________________________
> > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Thu, August 12, 2010 1:35:53 AM
> > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > >
> > > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > > >
> > > > > > > > Thanks Tom,
> > > > > > > >
> > > > > > > > Your support of your product is excellent and I now feel I am
> >getting
> >
> > >
> > > > > > > >somewhere.
> > > > > > > >
> > > > > > > > I increased the P gain upto 1.7 where I could just feel the motor
> > > >oscillate
> > > >
> > > > > >
> > > > > > >so
> > > > > > >
> > > > > > >
> > > > > > > > reduced it to 0.8.
> > > > > > > >
> > > > > > > > The I gain was set to 0.0001,any higher and it seemd to create an
> > > >overshoot
> > > >
> > > > > >
> > > > > > >of
> > > > > > >
> > > > > > >
> > > > > > > > the output.
> > > > > > > >
> > > > > > > > I also noticed to get a full revolution I had to increase the move
> >to
> >
> > >
> > > > > 4096.
> > > > > > > >
> > > > > > > > Again I have uploaded the results to the files section.
> > > > > > > >
> > > > > > > > Before I move everything out to the workshop and connect up the
> > >machine
> > >
> > > >for
> > > >
> > > > > >
> > > > > > > >real
> > > > > > > >
> > > > > > > > I would like to be able to understand getting Mach to work on the
> > > >single
> > > >
> > > > > >axis
> > > > > >
> > > > > > >I
> > > > > > >
> > > > > > > >
> > > > > > > > have here in the office. I will also connect up home and limit
> > > >switches.
> > > > > > > >
> > > > > > > > Regards
> > > > > > > >
> > > > > > > > Arthur
> > > > > > > >
> > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Congratulations
> >Arthur!ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >
> > >You now have a closed
> > >
> > > >servo
> > > >
> > > > >
> >>loop.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >
> > > > > >
> > > > > > > > >
> > > > > > > > > Since moving 1000 counts results in 1/2 rev, then the resolution
>
> > >must
> > >
> > > >be
> > > >
> > > > >
> > > > > > > >about
> > > > > > > >
> > > > > > > >
> > > > > > > > > 2000 counts/rev.
> > > > > > > > >
> > > > > > > > > Of course your motion is very slow and sloppy so the next step is
> >
> > >to
> > >
> > >
> > > > > > >optimize
> > > > > > >
> > > > > > > >
> > > > > > > > > the servo
> >tuning.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > Please
> >
> > >see:
> > > > > > > > >
> > > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > > > > > > > >
> > > > > > > > > Notice in your case, the output (green plot and right side
> > > > >
> >>scale)ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ãâàis
> >
> > > > > >
> > > > > > > >clamping
> > > > > > > >
> > > > > > > > >at
> > > > > > > > >
> > > > > > > > > only 20 DAC counts
> >>(~0.1V).ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â This is because of
> >
> > >
> > > >our max allowed
> > > >
> > > > > >error
> > > > > >
> > > > > > >(200)
> > > > > > >
> > > > > > >
> > > > > > > > >and
> > > > > > > > >
> > > > > > > > > very
> >lowÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàP
> > gain of 0.1.
> > > > > > > > >
> > > > > > > > > Regards
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 674 |
From: Tom Kerekes |
Date: 9/28/2010 |
Subject: Re: Kflop / Kanalog |
Hi Art,
Try increasing the max integrator from 200 to 2047 as it looks like we need about 600 DAC counts to go at a speed of 100000 cnts/sec.
But there is something asymmetrical happening as well.
TK
Group: DynoMotion |
Message: 675 |
From: aeunson@btinternet.com |
Date: 9/29/2010 |
Subject: Re: Kflop / Kanalog |
Hi Tom
Increasing the max integrator to 2047 made no difference.
What could cause the asymetrical movement?
I am going to try the other 3 amps to see if they are the same.
Regards
Art
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Art,
>
> Try increasing the max integrator from 200 to 2047 as it looks like we need
> about 600 DAC counts to go at a speed of 100000 cnts/sec.
>
> But there is something asymmetrical happening as well.
>
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tue, September 28, 2010 1:21:19 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
> Â
> Thanks Tom
>
> I see that now you have explained it.
>
> I have changed the paramaters as suggested and tried tuning the system.
>
> To get the command and position to track I have increased the p gain to 1.2,
> this allows me to make a move upto 10000 before the output starts to distort.
>
> Above 10000 the output on the return starts to distort so I then increased the
> feed forward V to 0.003. this let me increase the move to 90000 before the
> output distorts.
>
> I then tried to increase the velocity but the output starts to distort again.
>
> The x axis is 800mm and the movement still seems quite slow.
>
> I am not sure if I am changing the correct parameters can you please advise.
>
> I have uploaded some screenshots
>
> Regards
>
> Art
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Art,
> >
> > Your Jerk setting is extremely low.
> >
> > With a Jerk limit of only 3000 cnts/sec^3 and a max acceleration of 175542
> > cnts/sec^2 it would take:
> >
> > 175542/3000 = 58 seconds
> >
> > before the acceleration would ramp up to the maximum you are specifying.ÃÂ
> >Mach3
> >
> > has no Jerk limit, it applies the full acceleration you specify instantly.ÃÂ So
> >
> > to see a similar motion that equates to what Mach3 is generating, set the Jerk
>
> > to a much bigger number like 2e7.ÃÂ Then the acceleration will be fully applied
> >
> > in a few milliseconds:
> >
> > 175542/20000000 = 0.008 seconds.
> >
> >
> > There is also a mistake with the velocity.ÃÂ Mach3 specifies the max velocity
> >per
> >
> > minute rather than per second so the velocity in counts/sec would be 48761
> > rather than 2925700.
> >
> >
> > After you make these two corrections the motionÃÂ on the Step Response screen
> >will
> >
> > be much faster and you will probably see larger following errors.ÃÂ You will
> >then
> >
> > be able to tune the system and determine the real limitations of your system.
> >
> > Regards
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Mon, September 27, 2010 3:09:52 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> > ÃÂ
> > Tom
> >
> > I have uploaded the mach motor tuning screenshot and the kmotion screen shot.
> >
> > The servo with linear actuator connected is 7mm / motor rev. the resolution is
>
> > 4096 per rev.
> >
> > If the velocity in mach is any more than 5000 I get a follower error.
> > At 5000 the movement of the table is quite slow but accurate.
> >
> > I also converted the mach figures as advised and ran them in kmotion where the
>
> > table seemed to move even slower.
> >
> > Please advise where you think I have gone wrong.
> >
> > Regards
> >
> > Art
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Art,
> > >
> > > Well you need to test the motion on the Step Response Screen for the same
> >type
> >
> >
> > > of motion you are attempting under Mach3 to see a respective response.ÃâÃÂ
> >For
> >
> > > example making a small/slow move from the Step Response screen may show small
> >
> > > following errors, but a large, faster, higher acceleration move under Mach3
> >may
> >
> > >
> > > have large following errors.ÃâÃÂ
> > >
> > > #1 What Velocity and Acceleration do you have Mach3 "Tuning" Set at?
> > >
> > > #2 What following error setting are you using?
> > >
> > > #3 Mach3 motions are not Jerk LimitedÃâàso set the KMotion Jerk value 100X
> >the
> >
> > > acceleration value to see a similar motion.
> > >
> > > #4 convert the Mach3 Vel and Accel values to encoder counts (multiply by
> >counts
> >
> > >
> > > per mm)
> > >
> > > #5 plot a 90mm motion (Command, Position, Output)
> > >
> > > TK
> > >
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Mon, September 27, 2010 1:05:52 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > > ÃâÃÂ
> > >
> > > Tom,
> > >
> > > There is the message in the console "Following error 0 axis disabled
> > >
> > > I did tune them in the response screen before running Mach a few weeks ago.
> > >
> > > Regards
> > >
> > > Art
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Art,
> > > >
> > > > Is there a message in the KMotion Console screen such as "Following
> > >error..."?
> > > >
> > > > Before attempting to use Mach3 you should tune the motors using the KMotion
> >
> > > >Step
> > > >
> > > > Response Screen and verify that you can make moves at your needed speeds
> >and
> >
> >
> > > > accuracies.ÃÆ'ââ¬Å¡ÃâàWhat are your following errors for a 45mm move?
> > > >
> > > > Regards
> > > > TKÃÆ'ââ¬Å¡ÃâÃÂ
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Mon, September 27, 2010 10:56:07 AM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > Hi Tom
> > > >
> > > > I have finaly managed to get some time on the router.
> > > >
> > > > I have the x & y axis connected and the motor tuning all set up so that I
> >can
> >
> > >
> > > > accurately drive the table in Mach a set amount but if I try and drive it
> > > > anymore than 45mm at a time the table stops and I get this message:
> > >"dynamotion
> > >
> > > >
> > > > status all axes disabled"
> > > >
> > > > Any idea where I have gone wrong?
> > > >
> > > > Art
> > > >
> > > > --- In DynoMotion@yahoogroups.com, "aeunson@" <aeunson@> wrote:
> > > > >
> > > > >
> > > > > Hi Tom,
> > > > >
> > > > > I realised that just before going to bed last night and all is working
> > >well.
> > > > >
> > > > > However I did have to set steps per to 322.5 to get the DRO to read
> > >correctly
> > >
> > > >
> > > > >as it was reading low with the calculated value.
> > > > >
> > > > > I think I can now wait untill I fully complete the machine before I take
>
> > >this
> > >
> > > >
> > > > >any further when I will probably be back with lots of questions.
> > > > >
> > > > > Once I get it up and running I will post a video of it running but this
> > >will
> > >
> > > >be
> > > >
> > > > >a few weeks
> > > > >
> > > > > Thanks for yor help. You certainly support your product well.
> > > > >
> > > > > Best regards
> > > > >
> > > > > Art
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Art,
> > > > > >
> > > > > > No.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàIn KMotion everything is in
> >counts.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàYou would
> >
> > >change Mach3
> > >
> > > >"Motor
> > > >
> > > > > > Tuning".ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàSince you work in mm.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >The number of counts/mm
> >
> > >would be:
> > > > > >
> > > > > > 4096*2/25.4=322.5196 counts/mm
> > > > > >
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: "aeunson@" <aeunson@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Fri, August 13, 2010 4:50:05 PM
> > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > >
> > > > > > ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > >
> > > > > > Hi Tom,
> > > > > >
> > > > > > This motor is conected to a ballscrew which is 2 turns to the inch.
> > > > > >
> > > > > > Do I change this in kmotion and re-write the c prog?
> > > > > >
> > > > > > Regards
> > > > > >
> > > > > > Art
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Arthur,
> > > > > > >
> > > > > > > I don't see anything specifically wrong in the Mach3Mill.xml
> > > >file.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàIt
> > > >
> > > > >seems
> > > > >
> > > > > > >to
> > > > > > >
> > > > > > > work for me.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàApparently
> >Mach3 has an issue where it
> >
> > >saves the
> > >
> > > >XML file
> > > >
> > > > >into
> > > > >
> > > > > > > whatever the current directory is when you exit which I think can
> > >result
> > >
> > > >in
> > > >
> > > > >
> > > > > > >lost
> > > > > > >
> > > > > > > changes and confusion.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàAlso
> >sometimes the units
> >
> > >inexplicably
> > >
> > > >change
> > > >
> > > > >from
> > > > >
> > > > > > >inches
> > > > > > >
> > > > > > > to mm mode, so check if somehow your base units somehow got switched
> >to
> >
> > >
> > > > mm.
> > > > > > >
> > > > > > > Maybe check what feed rate you specified?
> > > > > > >
> > > > > > > I see you set the resolution to 4096 which is the number of encoder
> > > > > > >counts/motor
> > > > > > >
> > > > > > > rev.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàUsually mills have a
> >lead screw with about 5
> >
> > >turns/inch so
> > >
> > > >the
> > > >
> > > > >correct
> > > > >
> > > > > > > value would probably be more like 5x4096.
> > > > > > >
> > > > > > > Let us know how it goes and thanks for participating in the Group.
> > > > > > >
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Fri, August 13, 2010 8:26:29 AM
> > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > >
> > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > > Hi Tom
> > > > > > >
> > > > > > > I have it working.
> > > > > > > Given a G0 x200 it will drive to 200. G0 x100 it will return to 100
> >and
> >
> > >
> > > >G0
> > > >
> > > > >x0
> > > > >
> > > > > > >it
> > > > > > >
> > > > > > > returns to zero.
> > > > > > > G1 & G2 are very very slow.
> > > > > > >
> > > > > > > But it is slow so I posted the xml file into the files section to see
> >
> > > >where
> > > >
> > > > >I
> > > > >
> > > > > > > have gone wrong.
> > > > > > >
> > > > > > > All the motors are the same but the x & y axis are different gearing
> >so
> >
> > >I
> > >
> > > >
> > > > > > >should
> > > > > > >
> > > > > > > be able to figure them out now.
> > > > > > >
> > > > > > > It going to be a couple of weeks before I get working on the full
> >table
> >
> > >
> > > >but
> > > >
> > > > >I
> > > > >
> > > > > > >am
> > > > > > >
> > > > > > > very pleased I can now drive a single motor with mach3 and prove it
> > >will
> > >
> > >
> > > > >work.
> > > > > > >
> > > > > > > Regards
> > > > > > >
> > > > > > > Arthur
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Arthur,
> > > > > > > >
> > > > > > > >
> >Strange.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > What about a G1 or
> >
> > >G2 move of for example
> > >
> > > >1 inch?
> > > > > > > >
> > > > > > > > What is your Mach3 Motor Tuning - Resolution, Vel, Accel, Units?
> > > > > > > >
> > > > > > > > Maybe you should send your Mach3 XML file.
> > > > > > > >
> > > > > > > > TK
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ________________________________
> > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Thu, August 12, 2010 4:40:40 PM
> > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > >
> > > > > > > >
> >ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >
> > > > > > > >
> > > > > > > > Hi Tom,
> > > > > > > >
> > > > > > > > Nearly there but not quite.
> > > > > > > >
> > > > > > > > When I Jog in mach it will continue to run in one direction untill
> >I
> >
> >
> > > >jog
> > > >
> > > > >in
> > > > >
> > > > > > >the
> > > > > > >
> > > > > > > >
> > > > > > > > opposite direction where it will still keep running.
> > > > > > > >
> > > > > > > > Here is the program I ended up with.
> > > > > > > >
> > > > > > > > Regards
> > > > > > > >
> > > > > > > > Arthur
> > > > > > > >
> > > > > > > > ch0->InputMode=ENCODER_MODE;
> > > > > > > > ch0->OutputMode=DAC_SERVO_MODE;
> > > > > > > > ch0->Vel=10000;
> > > > > > > > ch0->Accel=100000;
> > > > > > > > ch0->Jerk=1000000;
> > > > > > > > ch0->P=0.8000000119209;
> > > > > > > > ch0->I=9.999999747379e-005;
> > > > > > > > ch0->D=0;
> > > > > > > > ch0->FFAccel=0;
> > > > > > > > ch0->FFVel=0;
> > > > > > > > ch0->MaxI=200;
> > > > > > > > ch0->MaxErr=200;
> > > > > > > > ch0->MaxOutput=2047;
> > > > > > > > ch0->DeadBandGain=1;
> > > > > > > > ch0->DeadBandRange=0;
> > > > > > > > ch0->InputChan0=0;
> > > > > > > > ch0->InputChan1=1;
> > > > > > > > ch0->OutputChan0=0;
> > > > > > > > ch0->OutputChan1=1;
> > > > > > > > ch0->MasterAxis=-1;
> > > > > > > > ch0->LimitSwitchOptions=0x0;
> > > > > > > > ch0->InputGain0=-1;
> > > > > > > > ch0->InputGain1=1;
> > > > > > > > ch0->InputOffset0=0;
> > > > > > > > ch0->InputOffset1=0;
> > > > > > > > ch0->OutputGain=1;
> > > > > > > > ch0->OutputOffset=0;
> > > > > > > > ch0->SlaveGain=1;
> > > > > > > > ch0->BacklashMode=BACKLASH_OFF;
> > > > > > > > ch0->BacklashAmount=0;
> > > > > > > > ch0->BacklashRate=0;
> > > > > > > > ch0->invDistPerCycle=1;
> > > > > > > > ch0->Lead=0;
> > > > > > > > ch0->MaxFollowingError=4000;
> > > > > > > > ch0->StepperAmplitude=250;
> > > > > > > >
> > > > > > > > ch0->iir[0].B0=1;
> > > > > > > > ch0->iir[0].B1=0;
> > > > > > > > ch0->iir[0].B2=0;
> > > > > > > > ch0->iir[0].A1=0;
> > > > > > > > ch0->iir[0].A2=0;
> > > > > > > >
> > > > > > > > ch0->iir[1].B0=1;
> > > > > > > > ch0->iir[1].B1=0;
> > > > > > > > ch0->iir[1].B2=0;
> > > > > > > > ch0->iir[1].A1=0;
> > > > > > > > ch0->iir[1].A2=0;
> > > > > > > >
> > > > > > > > ch0->iir[2].B0=1;
> > > > > > > > ch0->iir[2].B1=0;
> > > > > > > > ch0->iir[2].B2=0;
> > > > > > > > ch0->iir[2].A1=0;
> > > > > > > > ch0->iir[2].A2=0;
> > > > > > > >
> > > > > > > > EnableAxisDest (0,ch0->Position);
> > > > > > > >
> > > > > > > > DefineCordSystem (0,-1,-1,-1);
> > > > > > > >
> > > > > > > > return 0;
> > > > > > > >
> > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Hi Arthur,
> > > > > > > > >
> > > > > > > > > I didn't see a new file uploaded.
> > > > > > > > >
> > > > > > > > > Now that you have one axis working you are ready to try driving
> >it
> >
> >
> > > >from
> > > >
> > > > >
> > > > > > >
> >>Mach3.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >
> > > > > > > >
> > > > > > > > >
> > > > > > > > > You need to make a C program that Mach can use to configure
> >KFlop.
> > > > > > > > >
> > > > > > > > > Follow the procedure described here (you are now at step 4)
> > > > > > > > >
> > > > > > > > > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> > > > > > > > >
> > > > > > > > > Start with some Example Initialization program such as
> > > > > >
> >>InitStepDir3Axis.c.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >
> > > > > > >
> > > > > > >
> > > > > > > > > Paste
> >yourÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ãâàconfiguration
> >
> > >over the ch0
> > >
> > >
> >>settings.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > Remove
> >
> > > >
> > > > >all the
> > > > >
> > > > > > >settings
> > > > > > >
> > > > > > > >for
> > > > > > > >
> > > > > > > > >ch1
> > > > > > > > >
> > > > > > > > > and ch2.
> > > > > > > > >
> > > > > > > > > Change the
> >>DefineCoordSystemÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ãâàcall
> >l to just define
> >
> > >
> > > >one ch0 axis
> > > >
> > > > >in the
> > > > >
> > > > > > >system
> > > > > > >
> > > > > > > >as
> > > > > > > >
> > > > > > > > >X
> > > > > > > > >
> > > > > > > > >
> >by:ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > DefineCoordSystem(0,-1,-1,-1);
> > > > > > > > >
> > > > > > > > > Also change the Enable statement from:
> > > > > > > > >
> > > > > > > > > EnableAxisDest(0,0);
> > > > > > > > >
> > > > > > > > > to
> > > > > > > > >
> > > > > > > > > EnableAxisDest(0, ch0->Position);
> > > > > > > > >
> > > > > > > > > (this will enable the axis and servo at the current encoder
> > >position,
> > >
> > > >
> > > > > > > >otherwise
> > > > > > > >
> > > > > > > > >
> > > > > > > > > you might get a rapid motion to a destination of zero)
> > > > > > > > >
> > > > > > > > > Let us know how far you get.
> > > > > > > > >
> > > > > > > > > Regards
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ________________________________
> > > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > Sent: Thu, August 12, 2010 1:35:53 AM
> > > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > > >
> > > > > > > > >
> >ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >
> > > > > > > > >
> > > > > > > > > Thanks Tom,
> > > > > > > > >
> > > > > > > > > Your support of your product is excellent and I now feel I am
> > >getting
> > >
> > > >
> > > > > > > > >somewhere.
> > > > > > > > >
> > > > > > > > > I increased the P gain upto 1.7 where I could just feel the motor
> >
> > > > >oscillate
> > > > >
> > > > > > >
> > > > > > > >so
> > > > > > > >
> > > > > > > >
> > > > > > > > > reduced it to 0.8.
> > > > > > > > >
> > > > > > > > > The I gain was set to 0.0001,any higher and it seemd to create an
> >
> > > > >overshoot
> > > > >
> > > > > > >
> > > > > > > >of
> > > > > > > >
> > > > > > > >
> > > > > > > > > the output.
> > > > > > > > >
> > > > > > > > > I also noticed to get a full revolution I had to increase the
> >move
> >
> > >to
> > >
> > > >
> > > > > > 4096.
> > > > > > > > >
> > > > > > > > > Again I have uploaded the results to the files section.
> > > > > > > > >
> > > > > > > > > Before I move everything out to the workshop and connect up the
> > > >machine
> > > >
> > > > >for
> > > > >
> > > > > > >
> > > > > > > > >real
> > > > > > > > >
> > > > > > > > > I would like to be able to understand getting Mach to work on the
> >
> > > > >single
> > > > >
> > > > > > >axis
> > > > > > >
> > > > > > > >I
> > > > > > > >
> > > > > > > > >
> > > > > > > > > have here in the office. I will also connect up home and limit
> > > > >switches.
> > > > > > > > >
> > > > > > > > > Regards
> > > > > > > > >
> > > > > > > > > Arthur
> > > > > > > > >
> > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > >
> > > > > > > > > > Congratulations
> >>Arthur!ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >
> > > >You now have a closed
> > > >
> > > > >servo
> > > > >
> > > > > >
> >>>loop.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >
> > > > > > >
> > > > > > > > > >
> > > > > > > > > > Since moving 1000 counts results in 1/2 rev, then the
> >resolution
> >
> >
> > > >must
> > > >
> > > > >be
> > > > >
> > > > > >
> > > > > > > > >about
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > > 2000 counts/rev.
> > > > > > > > > >
> > > > > > > > > > Of course your motion is very slow and sloppy so the next step
> >is
> >
> > >
> > > >to
> > > >
> > > >
> > > > > > > >optimize
> > > > > > > >
> > > > > > > > >
> > > > > > > > > > the servo
> >>tuning.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > > Please
> > >
> > > >see:
> > > > > > > > > >
> > > > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > > > > > > > > >
> > > > > > > > > > Notice in your case, the output (green plot and right side
> > > > > >
> >>>scale)ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ãâàis
> >s
> > >
> > > > > > >
> > > > > > > > >clamping
> > > > > > > > >
> > > > > > > > > >at
> > > > > > > > > >
> > > > > > > > > > only 20 DAC counts
> >>>(~0.1V).ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >ÃÂ This is because of
> > >
> > > >
> > > > >our max allowed
> > > > >
> > > > > > >error
> > > > > > >
> > > > > > > >(200)
> > > > > > > >
> > > > > > > >
> > > > > > > > > >and
> > > > > > > > > >
> > > > > > > > > > very
> >>lowÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàP
> >P
> > > gain of 0.1.
> > > > > > > > > >
> > > > > > > > > > Regards
> > > > > > > > > > TK
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 676 |
From: aeunson@btinternet.com |
Date: 9/29/2010 |
Subject: Re: Kflop / Kanalog |
Hi again Tom,
The asymetrical movement is the same with 3 motors and 4 amps.
Any idea what could cause this?
Regards
Art
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Art,
>
> Try increasing the max integrator from 200 to 2047 as it looks like we need
> about 600 DAC counts to go at a speed of 100000 cnts/sec.
>
> But there is something asymmetrical happening as well.
>
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tue, September 28, 2010 1:21:19 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
> Â
> Thanks Tom
>
> I see that now you have explained it.
>
> I have changed the paramaters as suggested and tried tuning the system.
>
> To get the command and position to track I have increased the p gain to 1.2,
> this allows me to make a move upto 10000 before the output starts to distort.
>
> Above 10000 the output on the return starts to distort so I then increased the
> feed forward V to 0.003. this let me increase the move to 90000 before the
> output distorts.
>
> I then tried to increase the velocity but the output starts to distort again.
>
> The x axis is 800mm and the movement still seems quite slow.
>
> I am not sure if I am changing the correct parameters can you please advise.
>
> I have uploaded some screenshots
>
> Regards
>
> Art
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Art,
> >
> > Your Jerk setting is extremely low.
> >
> > With a Jerk limit of only 3000 cnts/sec^3 and a max acceleration of 175542
> > cnts/sec^2 it would take:
> >
> > 175542/3000 = 58 seconds
> >
> > before the acceleration would ramp up to the maximum you are specifying.ÃÂ
> >Mach3
> >
> > has no Jerk limit, it applies the full acceleration you specify instantly.ÃÂ So
> >
> > to see a similar motion that equates to what Mach3 is generating, set the Jerk
>
> > to a much bigger number like 2e7.ÃÂ Then the acceleration will be fully applied
> >
> > in a few milliseconds:
> >
> > 175542/20000000 = 0.008 seconds.
> >
> >
> > There is also a mistake with the velocity.ÃÂ Mach3 specifies the max velocity
> >per
> >
> > minute rather than per second so the velocity in counts/sec would be 48761
> > rather than 2925700.
> >
> >
> > After you make these two corrections the motionÃÂ on the Step Response screen
> >will
> >
> > be much faster and you will probably see larger following errors.ÃÂ You will
> >then
> >
> > be able to tune the system and determine the real limitations of your system.
> >
> > Regards
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Mon, September 27, 2010 3:09:52 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> > ÃÂ
> > Tom
> >
> > I have uploaded the mach motor tuning screenshot and the kmotion screen shot.
> >
> > The servo with linear actuator connected is 7mm / motor rev. the resolution is
>
> > 4096 per rev.
> >
> > If the velocity in mach is any more than 5000 I get a follower error.
> > At 5000 the movement of the table is quite slow but accurate.
> >
> > I also converted the mach figures as advised and ran them in kmotion where the
>
> > table seemed to move even slower.
> >
> > Please advise where you think I have gone wrong.
> >
> > Regards
> >
> > Art
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Art,
> > >
> > > Well you need to test the motion on the Step Response Screen for the same
> >type
> >
> >
> > > of motion you are attempting under Mach3 to see a respective response.ÃâÃÂ
> >For
> >
> > > example making a small/slow move from the Step Response screen may show small
> >
> > > following errors, but a large, faster, higher acceleration move under Mach3
> >may
> >
> > >
> > > have large following errors.ÃâÃÂ
> > >
> > > #1 What Velocity and Acceleration do you have Mach3 "Tuning" Set at?
> > >
> > > #2 What following error setting are you using?
> > >
> > > #3 Mach3 motions are not Jerk LimitedÃâàso set the KMotion Jerk value 100X
> >the
> >
> > > acceleration value to see a similar motion.
> > >
> > > #4 convert the Mach3 Vel and Accel values to encoder counts (multiply by
> >counts
> >
> > >
> > > per mm)
> > >
> > > #5 plot a 90mm motion (Command, Position, Output)
> > >
> > > TK
> > >
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Mon, September 27, 2010 1:05:52 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > > ÃâÃÂ
> > >
> > > Tom,
> > >
> > > There is the message in the console "Following error 0 axis disabled
> > >
> > > I did tune them in the response screen before running Mach a few weeks ago.
> > >
> > > Regards
> > >
> > > Art
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Art,
> > > >
> > > > Is there a message in the KMotion Console screen such as "Following
> > >error..."?
> > > >
> > > > Before attempting to use Mach3 you should tune the motors using the KMotion
> >
> > > >Step
> > > >
> > > > Response Screen and verify that you can make moves at your needed speeds
> >and
> >
> >
> > > > accuracies.ÃÆ'ââ¬Å¡ÃâàWhat are your following errors for a 45mm move?
> > > >
> > > > Regards
> > > > TKÃÆ'ââ¬Å¡ÃâÃÂ
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Mon, September 27, 2010 10:56:07 AM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > Hi Tom
> > > >
> > > > I have finaly managed to get some time on the router.
> > > >
> > > > I have the x & y axis connected and the motor tuning all set up so that I
> >can
> >
> > >
> > > > accurately drive the table in Mach a set amount but if I try and drive it
> > > > anymore than 45mm at a time the table stops and I get this message:
> > >"dynamotion
> > >
> > > >
> > > > status all axes disabled"
> > > >
> > > > Any idea where I have gone wrong?
> > > >
> > > > Art
> > > >
> > > > --- In DynoMotion@yahoogroups.com, "aeunson@" <aeunson@> wrote:
> > > > >
> > > > >
> > > > > Hi Tom,
> > > > >
> > > > > I realised that just before going to bed last night and all is working
> > >well.
> > > > >
> > > > > However I did have to set steps per to 322.5 to get the DRO to read
> > >correctly
> > >
> > > >
> > > > >as it was reading low with the calculated value.
> > > > >
> > > > > I think I can now wait untill I fully complete the machine before I take
>
> > >this
> > >
> > > >
> > > > >any further when I will probably be back with lots of questions.
> > > > >
> > > > > Once I get it up and running I will post a video of it running but this
> > >will
> > >
> > > >be
> > > >
> > > > >a few weeks
> > > > >
> > > > > Thanks for yor help. You certainly support your product well.
> > > > >
> > > > > Best regards
> > > > >
> > > > > Art
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Art,
> > > > > >
> > > > > > No.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàIn KMotion everything is in
> >counts.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàYou would
> >
> > >change Mach3
> > >
> > > >"Motor
> > > >
> > > > > > Tuning".ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàSince you work in mm.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >The number of counts/mm
> >
> > >would be:
> > > > > >
> > > > > > 4096*2/25.4=322.5196 counts/mm
> > > > > >
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: "aeunson@" <aeunson@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Fri, August 13, 2010 4:50:05 PM
> > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > >
> > > > > > ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > >
> > > > > > Hi Tom,
> > > > > >
> > > > > > This motor is conected to a ballscrew which is 2 turns to the inch.
> > > > > >
> > > > > > Do I change this in kmotion and re-write the c prog?
> > > > > >
> > > > > > Regards
> > > > > >
> > > > > > Art
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Arthur,
> > > > > > >
> > > > > > > I don't see anything specifically wrong in the Mach3Mill.xml
> > > >file.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàIt
> > > >
> > > > >seems
> > > > >
> > > > > > >to
> > > > > > >
> > > > > > > work for me.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàApparently
> >Mach3 has an issue where it
> >
> > >saves the
> > >
> > > >XML file
> > > >
> > > > >into
> > > > >
> > > > > > > whatever the current directory is when you exit which I think can
> > >result
> > >
> > > >in
> > > >
> > > > >
> > > > > > >lost
> > > > > > >
> > > > > > > changes and confusion.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàAlso
> >sometimes the units
> >
> > >inexplicably
> > >
> > > >change
> > > >
> > > > >from
> > > > >
> > > > > > >inches
> > > > > > >
> > > > > > > to mm mode, so check if somehow your base units somehow got switched
> >to
> >
> > >
> > > > mm.
> > > > > > >
> > > > > > > Maybe check what feed rate you specified?
> > > > > > >
> > > > > > > I see you set the resolution to 4096 which is the number of encoder
> > > > > > >counts/motor
> > > > > > >
> > > > > > > rev.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàUsually mills have a
> >lead screw with about 5
> >
> > >turns/inch so
> > >
> > > >the
> > > >
> > > > >correct
> > > > >
> > > > > > > value would probably be more like 5x4096.
> > > > > > >
> > > > > > > Let us know how it goes and thanks for participating in the Group.
> > > > > > >
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Fri, August 13, 2010 8:26:29 AM
> > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > >
> > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > > Hi Tom
> > > > > > >
> > > > > > > I have it working.
> > > > > > > Given a G0 x200 it will drive to 200. G0 x100 it will return to 100
> >and
> >
> > >
> > > >G0
> > > >
> > > > >x0
> > > > >
> > > > > > >it
> > > > > > >
> > > > > > > returns to zero.
> > > > > > > G1 & G2 are very very slow.
> > > > > > >
> > > > > > > But it is slow so I posted the xml file into the files section to see
> >
> > > >where
> > > >
> > > > >I
> > > > >
> > > > > > > have gone wrong.
> > > > > > >
> > > > > > > All the motors are the same but the x & y axis are different gearing
> >so
> >
> > >I
> > >
> > > >
> > > > > > >should
> > > > > > >
> > > > > > > be able to figure them out now.
> > > > > > >
> > > > > > > It going to be a couple of weeks before I get working on the full
> >table
> >
> > >
> > > >but
> > > >
> > > > >I
> > > > >
> > > > > > >am
> > > > > > >
> > > > > > > very pleased I can now drive a single motor with mach3 and prove it
> > >will
> > >
> > >
> > > > >work.
> > > > > > >
> > > > > > > Regards
> > > > > > >
> > > > > > > Arthur
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Arthur,
> > > > > > > >
> > > > > > > >
> >Strange.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > What about a G1 or
> >
> > >G2 move of for example
> > >
> > > >1 inch?
> > > > > > > >
> > > > > > > > What is your Mach3 Motor Tuning - Resolution, Vel, Accel, Units?
> > > > > > > >
> > > > > > > > Maybe you should send your Mach3 XML file.
> > > > > > > >
> > > > > > > > TK
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ________________________________
> > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Thu, August 12, 2010 4:40:40 PM
> > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > >
> > > > > > > >
> >ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >
> > > > > > > >
> > > > > > > > Hi Tom,
> > > > > > > >
> > > > > > > > Nearly there but not quite.
> > > > > > > >
> > > > > > > > When I Jog in mach it will continue to run in one direction untill
> >I
> >
> >
> > > >jog
> > > >
> > > > >in
> > > > >
> > > > > > >the
> > > > > > >
> > > > > > > >
> > > > > > > > opposite direction where it will still keep running.
> > > > > > > >
> > > > > > > > Here is the program I ended up with.
> > > > > > > >
> > > > > > > > Regards
> > > > > > > >
> > > > > > > > Arthur
> > > > > > > >
> > > > > > > > ch0->InputMode=ENCODER_MODE;
> > > > > > > > ch0->OutputMode=DAC_SERVO_MODE;
> > > > > > > > ch0->Vel=10000;
> > > > > > > > ch0->Accel=100000;
> > > > > > > > ch0->Jerk=1000000;
> > > > > > > > ch0->P=0.8000000119209;
> > > > > > > > ch0->I=9.999999747379e-005;
> > > > > > > > ch0->D=0;
> > > > > > > > ch0->FFAccel=0;
> > > > > > > > ch0->FFVel=0;
> > > > > > > > ch0->MaxI=200;
> > > > > > > > ch0->MaxErr=200;
> > > > > > > > ch0->MaxOutput=2047;
> > > > > > > > ch0->DeadBandGain=1;
> > > > > > > > ch0->DeadBandRange=0;
> > > > > > > > ch0->InputChan0=0;
> > > > > > > > ch0->InputChan1=1;
> > > > > > > > ch0->OutputChan0=0;
> > > > > > > > ch0->OutputChan1=1;
> > > > > > > > ch0->MasterAxis=-1;
> > > > > > > > ch0->LimitSwitchOptions=0x0;
> > > > > > > > ch0->InputGain0=-1;
> > > > > > > > ch0->InputGain1=1;
> > > > > > > > ch0->InputOffset0=0;
> > > > > > > > ch0->InputOffset1=0;
> > > > > > > > ch0->OutputGain=1;
> > > > > > > > ch0->OutputOffset=0;
> > > > > > > > ch0->SlaveGain=1;
> > > > > > > > ch0->BacklashMode=BACKLASH_OFF;
> > > > > > > > ch0->BacklashAmount=0;
> > > > > > > > ch0->BacklashRate=0;
> > > > > > > > ch0->invDistPerCycle=1;
> > > > > > > > ch0->Lead=0;
> > > > > > > > ch0->MaxFollowingError=4000;
> > > > > > > > ch0->StepperAmplitude=250;
> > > > > > > >
> > > > > > > > ch0->iir[0].B0=1;
> > > > > > > > ch0->iir[0].B1=0;
> > > > > > > > ch0->iir[0].B2=0;
> > > > > > > > ch0->iir[0].A1=0;
> > > > > > > > ch0->iir[0].A2=0;
> > > > > > > >
> > > > > > > > ch0->iir[1].B0=1;
> > > > > > > > ch0->iir[1].B1=0;
> > > > > > > > ch0->iir[1].B2=0;
> > > > > > > > ch0->iir[1].A1=0;
> > > > > > > > ch0->iir[1].A2=0;
> > > > > > > >
> > > > > > > > ch0->iir[2].B0=1;
> > > > > > > > ch0->iir[2].B1=0;
> > > > > > > > ch0->iir[2].B2=0;
> > > > > > > > ch0->iir[2].A1=0;
> > > > > > > > ch0->iir[2].A2=0;
> > > > > > > >
> > > > > > > > EnableAxisDest (0,ch0->Position);
> > > > > > > >
> > > > > > > > DefineCordSystem (0,-1,-1,-1);
> > > > > > > >
> > > > > > > > return 0;
> > > > > > > >
> > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Hi Arthur,
> > > > > > > > >
> > > > > > > > > I didn't see a new file uploaded.
> > > > > > > > >
> > > > > > > > > Now that you have one axis working you are ready to try driving
> >it
> >
> >
> > > >from
> > > >
> > > > >
> > > > > > >
> >>Mach3.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >
> > > > > > > >
> > > > > > > > >
> > > > > > > > > You need to make a C program that Mach can use to configure
> >KFlop.
> > > > > > > > >
> > > > > > > > > Follow the procedure described here (you are now at step 4)
> > > > > > > > >
> > > > > > > > > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> > > > > > > > >
> > > > > > > > > Start with some Example Initialization program such as
> > > > > >
> >>InitStepDir3Axis.c.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >
> > > > > > >
> > > > > > >
> > > > > > > > > Paste
> >yourÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ãâàconfiguration
> >
> > >over the ch0
> > >
> > >
> >>settings.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > Remove
> >
> > > >
> > > > >all the
> > > > >
> > > > > > >settings
> > > > > > >
> > > > > > > >for
> > > > > > > >
> > > > > > > > >ch1
> > > > > > > > >
> > > > > > > > > and ch2.
> > > > > > > > >
> > > > > > > > > Change the
> >>DefineCoordSystemÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ãâàcall
> >l to just define
> >
> > >
> > > >one ch0 axis
> > > >
> > > > >in the
> > > > >
> > > > > > >system
> > > > > > >
> > > > > > > >as
> > > > > > > >
> > > > > > > > >X
> > > > > > > > >
> > > > > > > > >
> >by:ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > DefineCoordSystem(0,-1,-1,-1);
> > > > > > > > >
> > > > > > > > > Also change the Enable statement from:
> > > > > > > > >
> > > > > > > > > EnableAxisDest(0,0);
> > > > > > > > >
> > > > > > > > > to
> > > > > > > > >
> > > > > > > > > EnableAxisDest(0, ch0->Position);
> > > > > > > > >
> > > > > > > > > (this will enable the axis and servo at the current encoder
> > >position,
> > >
> > > >
> > > > > > > >otherwise
> > > > > > > >
> > > > > > > > >
> > > > > > > > > you might get a rapid motion to a destination of zero)
> > > > > > > > >
> > > > > > > > > Let us know how far you get.
> > > > > > > > >
> > > > > > > > > Regards
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ________________________________
> > > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > Sent: Thu, August 12, 2010 1:35:53 AM
> > > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > > >
> > > > > > > > >
> >ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >
> > > > > > > > >
> > > > > > > > > Thanks Tom,
> > > > > > > > >
> > > > > > > > > Your support of your product is excellent and I now feel I am
> > >getting
> > >
> > > >
> > > > > > > > >somewhere.
> > > > > > > > >
> > > > > > > > > I increased the P gain upto 1.7 where I could just feel the motor
> >
> > > > >oscillate
> > > > >
> > > > > > >
> > > > > > > >so
> > > > > > > >
> > > > > > > >
> > > > > > > > > reduced it to 0.8.
> > > > > > > > >
> > > > > > > > > The I gain was set to 0.0001,any higher and it seemd to create an
> >
> > > > >overshoot
> > > > >
> > > > > > >
> > > > > > > >of
> > > > > > > >
> > > > > > > >
> > > > > > > > > the output.
> > > > > > > > >
> > > > > > > > > I also noticed to get a full revolution I had to increase the
> >move
> >
> > >to
> > >
> > > >
> > > > > > 4096.
> > > > > > > > >
> > > > > > > > > Again I have uploaded the results to the files section.
> > > > > > > > >
> > > > > > > > > Before I move everything out to the workshop and connect up the
> > > >machine
> > > >
> > > > >for
> > > > >
> > > > > > >
> > > > > > > > >real
> > > > > > > > >
> > > > > > > > > I would like to be able to understand getting Mach to work on the
> >
> > > > >single
> > > > >
> > > > > > >axis
> > > > > > >
> > > > > > > >I
> > > > > > > >
> > > > > > > > >
> > > > > > > > > have here in the office. I will also connect up home and limit
> > > > >switches.
> > > > > > > > >
> > > > > > > > > Regards
> > > > > > > > >
> > > > > > > > > Arthur
> > > > > > > > >
> > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > >
> > > > > > > > > > Congratulations
> >>Arthur!ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >
> > > >You now have a closed
> > > >
> > > > >servo
> > > > >
> > > > > >
> >>>loop.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >
> > > > > > >
> > > > > > > > > >
> > > > > > > > > > Since moving 1000 counts results in 1/2 rev, then the
> >resolution
> >
> >
> > > >must
> > > >
> > > > >be
> > > > >
> > > > > >
> > > > > > > > >about
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > > 2000 counts/rev.
> > > > > > > > > >
> > > > > > > > > > Of course your motion is very slow and sloppy so the next step
> >is
> >
> > >
> > > >to
> > > >
> > > >
> > > > > > > >optimize
> > > > > > > >
> > > > > > > > >
> > > > > > > > > > the servo
> >>tuning.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > > Please
> > >
> > > >see:
> > > > > > > > > >
> > > > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > > > > > > > > >
> > > > > > > > > > Notice in your case, the output (green plot and right side
> > > > > >
> >>>scale)ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ãâàis
> >s
> > >
> > > > > > >
> > > > > > > > >clamping
> > > > > > > > >
> > > > > > > > > >at
> > > > > > > > > >
> > > > > > > > > > only 20 DAC counts
> >>>(~0.1V).ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >ÃÂ This is because of
> > >
> > > >
> > > > >our max allowed
> > > > >
> > > > > > >error
> > > > > > >
> > > > > > > >(200)
> > > > > > > >
> > > > > > > >
> > > > > > > > > >and
> > > > > > > > > >
> > > > > > > > > > very
> >>lowÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàP
> >P
> > > gain of 0.1.
> > > > > > > > > >
> > > > > > > > > > Regards
> > > > > > > > > > TK
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 677 |
From: Tom Kerekes |
Date: 9/29/2010 |
Subject: Re: Kflop / Kanalog |
Hi Art,
Its common to have mechanical issues like more binding moving one way rather than the other.
Your plots aren't very clear. I can't tell if we are falling behind, or ahead, or oscillating.
Could you make some more that show what is going on more clearly.
For simplicity remove any feed forward. Increase the max Integrator to 2047 and max error to 5000.
Increase the speed a bit so the problem is more pronounced.
Zoom in on the problem area (left click drag zoom in, right click to zoom out).
And plot Error rather than Command and Position.
Check that you don't have any IIR Filters (all set to flat gain 1).
Also verify that your system is capable of these speeds by disabling the axis and just issuing DAC commands from the console. DACx=-600 should give you about the problem speed, larger negative values should be faster.
Encoder counts aren't being lost are they (moves back to where it started).
Sorry nothing obvious...
Regards
TK
Group: DynoMotion |
Message: 678 |
From: aeunson@btinternet.com |
Date: 9/29/2010 |
Subject: Re: Kflop / Kanalog |
Hi Tom,
I may be asking it to go to fast.
For cutting probably max around 50mm/second. rapids a bit more.
Acceleration is probably more important.
How do you corelate between acceleration and velocity figures on the motion profile and actual speeds.
I changed the integrator to 2047 and the error to 5000 and the asymetry disapeared I tried increasing the velocity but it seemed to peak. How do you know if you are getting the best out of the system?
I uploaded a couple of screenshots to see if you can see what is happening.
Regards
Art
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Art,
>
> Its common to have mechanical issues like more binding moving one way rather
> than the other.
>
> Your plots aren't very clear. I can't tell if we are falling behind, or ahead,
> or oscillating.
>
> Could you make some more that show what is going on more clearly.
>
> For simplicity remove any feed forward. Increase the max Integrator to 2047 and
> max error to 5000.
>
> Increase the speed a bit so the problem is more pronounced.
>
> Zoom in on the problem area (left click drag zoom in, right click to zoom out).
>
> And plot Error rather than Command and Position.
>
> Check that you don't have any IIR Filters (all set to flat gain 1).
>
> Also verify that your system is capable of these speeds by disabling the axis
> and just issuing DAC commands from the console. DACx=-600 should give you about
> the problem speed, larger negative values should be faster.
>
> Encoder counts aren't being lost are they (moves back to where it started).
>
> Sorry nothing obvious...
>
> Regards
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wed, September 29, 2010 1:35:55 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
> Â
> Hi again Tom,
>
> The asymetrical movement is the same with 3 motors and 4 amps.
>
> Any idea what could cause this?
>
> Regards
>
> Art
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Art,
> >
> > Try increasing the max integrator from 200 to 2047 as it looks like we need
> > about 600 DAC counts to go at a speed of 100000 cnts/sec.
> >
> > But there is something asymmetrical happening as well.
> >
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tue, September 28, 2010 1:21:19 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> > ÃÂ
> > Thanks Tom
> >
> > I see that now you have explained it.
> >
> > I have changed the paramaters as suggested and tried tuning the system.
> >
> > To get the command and position to track I have increased the p gain to 1.2,
> > this allows me to make a move upto 10000 before the output starts to distort.
> >
> > Above 10000 the output on the return starts to distort so I then increased the
>
> > feed forward V to 0.003. this let me increase the move to 90000 before the
> > output distorts.
> >
> > I then tried to increase the velocity but the output starts to distort again.
> >
> > The x axis is 800mm and the movement still seems quite slow.
> >
> > I am not sure if I am changing the correct parameters can you please advise.
> >
> > I have uploaded some screenshots
> >
> > Regards
> >
> > Art
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Art,
> > >
> > > Your Jerk setting is extremely low.
> > >
> > > With a Jerk limit of only 3000 cnts/sec^3 and a max acceleration of 175542
> > > cnts/sec^2 it would take:
> > >
> > > 175542/3000 = 58 seconds
> > >
> > > before the acceleration would ramp up to the maximum you are specifying.ÃâÃÂ
>
> > >Mach3
> > >
> > > has no Jerk limit, it applies the full acceleration you specify
> >instantly.ÃâàSo
> >
> > >
> > > to see a similar motion that equates to what Mach3 is generating, set the
> >Jerk
> >
> >
> > > to a much bigger number like 2e7.ÃâàThen the acceleration will be fully
> >applied
> >
> > >
> > > in a few milliseconds:
> > >
> > > 175542/20000000 = 0.008 seconds.
> > >
> > >
> > > There is also a mistake with the velocity.ÃâàMach3 specifies the max
> >velocity
> >
> > >per
> > >
> > > minute rather than per second so the velocity in counts/sec would be 48761
> > > rather than 2925700.
> > >
> > >
> > > After you make these two corrections the motionÃâàon the Step Response
> >screen
> >
> > >will
> > >
> > > be much faster and you will probably see larger following errors.ÃâàYou
> >will
> >
> > >then
> > >
> > > be able to tune the system and determine the real limitations of your
> system.
> > >
> > > Regards
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Mon, September 27, 2010 3:09:52 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > > ÃâÃÂ
> > > Tom
> > >
> > > I have uploaded the mach motor tuning screenshot and the kmotion screen
> shot.
> > >
> > > The servo with linear actuator connected is 7mm / motor rev. the resolution
> >is
> >
> >
> > > 4096 per rev.
> > >
> > > If the velocity in mach is any more than 5000 I get a follower error.
> > > At 5000 the movement of the table is quite slow but accurate.
> > >
> > > I also converted the mach figures as advised and ran them in kmotion where
> >the
> >
> >
> > > table seemed to move even slower.
> > >
> > > Please advise where you think I have gone wrong.
> > >
> > > Regards
> > >
> > > Art
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Art,
> > > >
> > > > Well you need to test the motion on the Step Response Screen for the same
> > >type
> > >
> > >
> > > > of motion you are attempting under Mach3 to see a respective
> >response.ÃÆ'ââ¬Å¡ÃâÃÂ
> >
> > >For
> > >
> > > > example making a small/slow move from the Step Response screen may show
> >small
> >
> > >
> > > > following errors, but a large, faster, higher acceleration move under Mach3
> >
> > >may
> > >
> > > >
> > > > have large following errors.ÃÆ'ââ¬Å¡ÃâÃÂ
> > > >
> > > > #1 What Velocity and Acceleration do you have Mach3 "Tuning" Set at?
> > > >
> > > > #2 What following error setting are you using?
> > > >
> > > > #3 Mach3 motions are not Jerk LimitedÃÆ'ââ¬Å¡Ãâàso set the KMotion Jerk value
> >100X
> >
> > >the
> > >
> > > > acceleration value to see a similar motion.
> > > >
> > > > #4 convert the Mach3 Vel and Accel values to encoder counts (multiply by
> > >counts
> > >
> > > >
> > > > per mm)
> > > >
> > > > #5 plot a 90mm motion (Command, Position, Output)
> > > >
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Mon, September 27, 2010 1:05:52 PM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > >
> > > > Tom,
> > > >
> > > > There is the message in the console "Following error 0 axis disabled
> > > >
> > > > I did tune them in the response screen before running Mach a few weeks
> ago.
> > > >
> > > > Regards
> > > >
> > > > Art
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Art,
> > > > >
> > > > > Is there a message in the KMotion Console screen such as "Following
> > > >error..."?
> > > > >
> > > > > Before attempting to use Mach3 you should tune the motors using the
> >KMotion
> >
> > >
> > > > >Step
> > > > >
> > > > > Response Screen and verify that you can make moves at your needed speeds
>
> > >and
> > >
> > >
> > > > > accuracies.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàWhat are your following errors for a 45mm
> >move?
> > > > >
> > > > > Regards
> > > > > TKÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Mon, September 27, 2010 10:56:07 AM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > Hi Tom
> > > > >
> > > > > I have finaly managed to get some time on the router.
> > > > >
> > > > > I have the x & y axis connected and the motor tuning all set up so that I
> >
> > >can
> > >
> > > >
> > > > > accurately drive the table in Mach a set amount but if I try and drive it
> >
> > > > > anymore than 45mm at a time the table stops and I get this message:
> > > >"dynamotion
> > > >
> > > > >
> > > > > status all axes disabled"
> > > > >
> > > > > Any idea where I have gone wrong?
> > > > >
> > > > > Art
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, "aeunson@" <aeunson@> wrote:
> > > > > >
> > > > > >
> > > > > > Hi Tom,
> > > > > >
> > > > > > I realised that just before going to bed last night and all is working
>
> > > >well.
> > > > > >
> > > > > > However I did have to set steps per to 322.5 to get the DRO to read
> > > >correctly
> > > >
> > > > >
> > > > > >as it was reading low with the calculated value.
> > > > > >
> > > > > > I think I can now wait untill I fully complete the machine before I
> >take
> >
> >
> > > >this
> > > >
> > > > >
> > > > > >any further when I will probably be back with lots of questions.
> > > > > >
> > > > > > Once I get it up and running I will post a video of it running but this
> >
> > > >will
> > > >
> > > > >be
> > > > >
> > > > > >a few weeks
> > > > > >
> > > > > > Thanks for yor help. You certainly support your product well.
> > > > > >
> > > > > > Best regards
> > > > > >
> > > > > > Art
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Art,
> > > > > > >
> > > > > > > No.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàIn KMotion everything
> >is in
> >
> > >counts.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàYou would
> > >
> > > >change Mach3
> > > >
> > > > >"Motor
> > > > >
> > > > > > > Tuning".ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàSince you work in
> >mm.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >
> > >The number of counts/mm
> > >
> > > >would be:
> > > > > > >
> > > > > > > 4096*2/25.4=322.5196 counts/mm
> > > > > > >
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Fri, August 13, 2010 4:50:05 PM
> > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > >
> > > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > >
> > > > > > > Hi Tom,
> > > > > > >
> > > > > > > This motor is conected to a ballscrew which is 2 turns to the inch.
> > > > > > >
> > > > > > > Do I change this in kmotion and re-write the c prog?
> > > > > > >
> > > > > > > Regards
> > > > > > >
> > > > > > > Art
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Arthur,
> > > > > > > >
> > > > > > > > I don't see anything specifically wrong in the Mach3Mill.xml
> > > >
> >>file.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > It
> >
> > > > >
> > > > > >seems
> > > > > >
> > > > > > > >to
> > > > > > > >
> > > > > > > > work for
> >me.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > Apparently
> >
> > >Mach3 has an issue where it
> > >
> > > >saves the
> > > >
> > > > >XML file
> > > > >
> > > > > >into
> > > > > >
> > > > > > > > whatever the current directory is when you exit which I think can
> > > >result
> > > >
> > > > >in
> > > > >
> > > > > >
> > > > > > > >lost
> > > > > > > >
> > > > > > > > changes and
> >confusion.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > Also
> >
> > >sometimes the units
> > >
> > > >inexplicably
> > > >
> > > > >change
> > > > >
> > > > > >from
> > > > > >
> > > > > > > >inches
> > > > > > > >
> > > > > > > > to mm mode, so check if somehow your base units somehow got
> >switched
> >
> > >to
> > >
> > > >
> > > > > mm.
> > > > > > > >
> > > > > > > > Maybe check what feed rate you specified?
> > > > > > > >
> > > > > > > > I see you set the resolution to 4096 which is the number of encoder
> >
> > > > > > > >counts/motor
> > > > > > > >
> > > > > > > >
> >rev.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > Usually mills have a
> >
> > >lead screw with about 5
> > >
> > > >turns/inch so
> > > >
> > > > >the
> > > > >
> > > > > >correct
> > > > > >
> > > > > > > > value would probably be more like 5x4096.
> > > > > > > >
> > > > > > > > Let us know how it goes and thanks for participating in the Group.
> > > > > > > >
> > > > > > > > TK
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ________________________________
> > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Fri, August 13, 2010 8:26:29 AM
> > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > >
> > > > > > > >
> >ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >
> > > > > > > > Hi Tom
> > > > > > > >
> > > > > > > > I have it working.
> > > > > > > > Given a G0 x200 it will drive to 200. G0 x100 it will return to 100
> >
> > >and
> > >
> > > >
> > > > >G0
> > > > >
> > > > > >x0
> > > > > >
> > > > > > > >it
> > > > > > > >
> > > > > > > > returns to zero.
> > > > > > > > G1 & G2 are very very slow.
> > > > > > > >
> > > > > > > > But it is slow so I posted the xml file into the files section to
> >see
> >
> > >
> > > > >where
> > > > >
> > > > > >I
> > > > > >
> > > > > > > > have gone wrong.
> > > > > > > >
> > > > > > > > All the motors are the same but the x & y axis are different
> >gearing
> >
> > >so
> > >
> > > >I
> > > >
> > > > >
> > > > > > > >should
> > > > > > > >
> > > > > > > > be able to figure them out now.
> > > > > > > >
> > > > > > > > It going to be a couple of weeks before I get working on the full
> > >table
> > >
> > > >
> > > > >but
> > > > >
> > > > > >I
> > > > > >
> > > > > > > >am
> > > > > > > >
> > > > > > > > very pleased I can now drive a single motor with mach3 and prove it
> >
> > > >will
> > > >
> > > >
> > > > > >work.
> > > > > > > >
> > > > > > > > Regards
> > > > > > > >
> > > > > > > > Arthur
> > > > > > > >
> > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Hi Arthur,
> > > > > > > > >
> > > > > > > > >
> >>Strange.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > > What about a G1 or
> > >
> > > >G2 move of for example
> > > >
> > > > >1 inch?
> > > > > > > > >
> > > > > > > > > What is your Mach3 Motor Tuning - Resolution, Vel, Accel, Units?
> > > > > > > > >
> > > > > > > > > Maybe you should send your Mach3 XML file.
> > > > > > > > >
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ________________________________
> > > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > Sent: Thu, August 12, 2010 4:40:40 PM
> > > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > > >
> > > > > > > > >
> >>ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >
> > > > > > > > >
> > > > > > > > > Hi Tom,
> > > > > > > > >
> > > > > > > > > Nearly there but not quite.
> > > > > > > > >
> > > > > > > > > When I Jog in mach it will continue to run in one direction
> >untill
> >
> > >I
> > >
> > >
> > > > >jog
> > > > >
> > > > > >in
> > > > > >
> > > > > > > >the
> > > > > > > >
> > > > > > > > >
> > > > > > > > > opposite direction where it will still keep running.
> > > > > > > > >
> > > > > > > > > Here is the program I ended up with.
> > > > > > > > >
> > > > > > > > > Regards
> > > > > > > > >
> > > > > > > > > Arthur
> > > > > > > > >
> > > > > > > > > ch0->InputMode=ENCODER_MODE;
> > > > > > > > > ch0->OutputMode=DAC_SERVO_MODE;
> > > > > > > > > ch0->Vel=10000;
> > > > > > > > > ch0->Accel=100000;
> > > > > > > > > ch0->Jerk=1000000;
> > > > > > > > > ch0->P=0.8000000119209;
> > > > > > > > > ch0->I=9.999999747379e-005;
> > > > > > > > > ch0->D=0;
> > > > > > > > > ch0->FFAccel=0;
> > > > > > > > > ch0->FFVel=0;
> > > > > > > > > ch0->MaxI=200;
> > > > > > > > > ch0->MaxErr=200;
> > > > > > > > > ch0->MaxOutput=2047;
> > > > > > > > > ch0->DeadBandGain=1;
> > > > > > > > > ch0->DeadBandRange=0;
> > > > > > > > > ch0->InputChan0=0;
> > > > > > > > > ch0->InputChan1=1;
> > > > > > > > > ch0->OutputChan0=0;
> > > > > > > > > ch0->OutputChan1=1;
> > > > > > > > > ch0->MasterAxis=-1;
> > > > > > > > > ch0->LimitSwitchOptions=0x0;
> > > > > > > > > ch0->InputGain0=-1;
> > > > > > > > > ch0->InputGain1=1;
> > > > > > > > > ch0->InputOffset0=0;
> > > > > > > > > ch0->InputOffset1=0;
> > > > > > > > > ch0->OutputGain=1;
> > > > > > > > > ch0->OutputOffset=0;
> > > > > > > > > ch0->SlaveGain=1;
> > > > > > > > > ch0->BacklashMode=BACKLASH_OFF;
> > > > > > > > > ch0->BacklashAmount=0;
> > > > > > > > > ch0->BacklashRate=0;
> > > > > > > > > ch0->invDistPerCycle=1;
> > > > > > > > > ch0->Lead=0;
> > > > > > > > > ch0->MaxFollowingError=4000;
> > > > > > > > > ch0->StepperAmplitude=250;
> > > > > > > > >
> > > > > > > > > ch0->iir[0].B0=1;
> > > > > > > > > ch0->iir[0].B1=0;
> > > > > > > > > ch0->iir[0].B2=0;
> > > > > > > > > ch0->iir[0].A1=0;
> > > > > > > > > ch0->iir[0].A2=0;
> > > > > > > > >
> > > > > > > > > ch0->iir[1].B0=1;
> > > > > > > > > ch0->iir[1].B1=0;
> > > > > > > > > ch0->iir[1].B2=0;
> > > > > > > > > ch0->iir[1].A1=0;
> > > > > > > > > ch0->iir[1].A2=0;
> > > > > > > > >
> > > > > > > > > ch0->iir[2].B0=1;
> > > > > > > > > ch0->iir[2].B1=0;
> > > > > > > > > ch0->iir[2].B2=0;
> > > > > > > > > ch0->iir[2].A1=0;
> > > > > > > > > ch0->iir[2].A2=0;
> > > > > > > > >
> > > > > > > > > EnableAxisDest (0,ch0->Position);
> > > > > > > > >
> > > > > > > > > DefineCordSystem (0,-1,-1,-1);
> > > > > > > > >
> > > > > > > > > return 0;
> > > > > > > > >
> > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > >
> > > > > > > > > > Hi Arthur,
> > > > > > > > > >
> > > > > > > > > > I didn't see a new file uploaded.
> > > > > > > > > >
> > > > > > > > > > Now that you have one axis working you are ready to try driving
> >
> > >it
> > >
> > >
> > > > >from
> > > > >
> > > > > >
> > > > > > > >
> >>>Mach3.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >
> > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > You need to make a C program that Mach can use to configure
> > >KFlop.
> > > > > > > > > >
> > > > > > > > > > Follow the procedure described here (you are now at step 4)
> > > > > > > > > >
> > > > > > > > > > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> > > > > > > > > >
> > > > > > > > > > Start with some Example Initialization program such as
> > > > > > >
> >>>InitStepDir3Axis.c.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >
> > > > > > > >
> > > > > > > >
> > > > > > > > > > Paste
> >>yourÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ãâàconfiguration
> >n
> > >
> > > >over the ch0
> > > >
> > > >
> >>>settings.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > > Remove
> > >
> > > > >
> > > > > >all the
> > > > > >
> > > > > > > >settings
> > > > > > > >
> > > > > > > > >for
> > > > > > > > >
> > > > > > > > > >ch1
> > > > > > > > > >
> > > > > > > > > > and ch2.
> > > > > > > > > >
> > > > > > > > > > Change the
> >>>DefineCoordSystemÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ãâàcall
> >l
> > >l to just define
> > >
> > > >
> > > > >one ch0 axis
> > > > >
> > > > > >in the
> > > > > >
> > > > > > > >system
> > > > > > > >
> > > > > > > > >as
> > > > > > > > >
> > > > > > > > > >X
> > > > > > > > > >
> > > > > > > > > >
> >>by:ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > DefineCoordSystem(0,-1,-1,-1);
> > > > > > > > > >
> > > > > > > > > > Also change the Enable statement from:
> > > > > > > > > >
> > > > > > > > > > EnableAxisDest(0,0);
> > > > > > > > > >
> > > > > > > > > > to
> > > > > > > > > >
> > > > > > > > > > EnableAxisDest(0, ch0->Position);
> > > > > > > > > >
> > > > > > > > > > (this will enable the axis and servo at the current encoder
> > > >position,
> > > >
> > > > >
> > > > > > > > >otherwise
> > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > you might get a rapid motion to a destination of zero)
> > > > > > > > > >
> > > > > > > > > > Let us know how far you get.
> > > > > > > > > >
> > > > > > > > > > Regards
> > > > > > > > > > TK
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > ________________________________
> > > > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > > Sent: Thu, August 12, 2010 1:35:53 AM
> > > > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > > > >
> > > > > > > > > >
> >>ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >
> > > > > > > > > >
> > > > > > > > > > Thanks Tom,
> > > > > > > > > >
> > > > > > > > > > Your support of your product is excellent and I now feel I am
> > > >getting
> > > >
> > > > >
> > > > > > > > > >somewhere.
> > > > > > > > > >
> > > > > > > > > > I increased the P gain upto 1.7 where I could just feel the
> >motor
> >
> > >
> > > > > >oscillate
> > > > > >
> > > > > > > >
> > > > > > > > >so
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > > reduced it to 0.8.
> > > > > > > > > >
> > > > > > > > > > The I gain was set to 0.0001,any higher and it seemd to create
> >an
> >
> > >
> > > > > >overshoot
> > > > > >
> > > > > > > >
> > > > > > > > >of
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > > the output.
> > > > > > > > > >
> > > > > > > > > > I also noticed to get a full revolution I had to increase the
> > >move
> > >
> > > >to
> > > >
> > > > >
> > > > > > > 4096.
> > > > > > > > > >
> > > > > > > > > > Again I have uploaded the results to the files section.
> > > > > > > > > >
> > > > > > > > > > Before I move everything out to the workshop and connect up the
> >
> > > > >machine
> > > > >
> > > > > >for
> > > > > >
> > > > > > > >
> > > > > > > > > >real
> > > > > > > > > >
> > > > > > > > > > I would like to be able to understand getting Mach to work on
> >the
> >
> > >
> > > > > >single
> > > > > >
> > > > > > > >axis
> > > > > > > >
> > > > > > > > >I
> > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > have here in the office. I will also connect up home and limit
>
> > > > > >switches.
> > > > > > > > > >
> > > > > > > > > > Regards
> > > > > > > > > >
> > > > > > > > > > Arthur
> > > > > > > > > >
> > > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Congratulations
> >>>Arthur!ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬ÃâæÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >ÃÂ
> > > >
> > > > >You now have a closed
> > > > >
> > > > > >servo
> > > > > >
> > > > > > >
> >>>>loop.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬ÃâæÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >ÃÂ
> > > >
> > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > Since moving 1000 counts results in 1/2 rev, then the
> > >resolution
> > >
> > >
> > > > >must
> > > > >
> > > > > >be
> > > > > >
> > > > > > >
> > > > > > > > > >about
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > > 2000 counts/rev.
> > > > > > > > > > >
> > > > > > > > > > > Of course your motion is very slow and sloppy so the next
> >step
> >
> > >is
> > >
> > > >
> > > > >to
> > > > >
> > > > >
> > > > > > > > >optimize
> > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > > the servo
> >>>tuning.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬ÃâæÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >ÃÂ
> > > > Please
> > > >
> > > > >see:
> > > > > > > > > > >
> > > > > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > > > > > > > > > >
> > > > > > > > > > > Notice in your case, the output (green plot and right side
> > > > > > >
> >>>>scale)ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬ÃâæÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ãâàis
> >s
> > >s
> > > >
> > > > > > > >
> > > > > > > > > >clamping
> > > > > > > > > >
> > > > > > > > > > >at
> > > > > > > > > > >
> > > > > > > > > > > only 20 DAC counts
> >>>>(~0.1V).ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬ÃâæÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >ÃÂ
> > > >ÃâàThis is because of
> > > >
> > > > >
> > > > > >our max allowed
> > > > > >
> > > > > > > >error
> > > > > > > >
> > > > > > > > >(200)
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > > >and
> > > > > > > > > > >
> > > > > > > > > > > very
> >>>lowÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬ÃâæÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàP
> >P
> > >P
> > > > gain of 0.1.
> > > > > > > > > > >
> > > > > > > > > > > Regards
> > > > > > > > > > > TK
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 679 |
From: Tom Kerekes |
Date: 9/29/2010 |
Subject: Re: Kflop / Kanalog |
Hi Art,
Those plots look logical.
The reason the velocity "peaked" is because for the acceleration specified and the distance of the move, the max velocity was not achieved before it was time to start decellerating. To get higher velocity you would need to increase the acceleration or increase the distance. There is a Velocity plot you can select. Since the DAC Output is currently only reaching about 800 counts and the max is 2047 you can possibly get about 2.5X faster speed.
The servo P and I gains are quite low so the performance is not very good. The error plot shows about 400 counts of following error since 1mm = 585 counts this is almost a mm. Try increasing the gains to get less following error. Note that if you increase too much the system will go violently unstable and oscilate, so be prepared to disable the servo. Once the system becomes unstable back the gain back to about half so you have a good stability margin.
Regards
TK
Group: DynoMotion |
Message: 680 |
From: aeunson@btinternet.com |
Date: 10/1/2010 |
Subject: Re: Kflop / Kanalog |
Hi Tom
I think I am begining to understand this a bit better and have had another try at tuning the servo.
Speed is now approx 0.25m/second which is fast enough for an 800m max travel.
I think I now have the error down to approx 0.1mm (.004") over 512mm.
Can you have a look over the screenshots I have uploaded and see what you think.
I did add a little forward error and low pass filter to bring the traces closer together and smooth them out.
Regards
Art
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Art,
>
> Those plots look logical.Â
>
> The reason the velocity "peaked" is because for the acceleration specified and
> the distance of the move, the max velocity was not achieved before it was time
> to start decellerating. To get higher velocity you would need to increase the
> acceleration or increase the distance. There is a Velocity plot you can
> select.  Since the DAC Output is currently only reaching about 800 counts and
> the max is 2047 you can possibly get about 2.5X faster speed.
>
> The servo P and I gains are quite low so the performance is not very good.  The
> error plot shows about 400 counts of following error since 1mm = 585 counts this
> is almost a mm. Try increasing the gains to get less following error. Note
> that if you increase too much the system will go violently unstable and
> oscilate, so be prepared to disable the servo. Once the system becomes unstable
> back the gain back to about half so you have a good stability margin.
>
> Regards
> TK
>
>
>
>
> ________________________________
> From: "aeunson@..." <aeunson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wed, September 29, 2010 6:13:51 PM
> Subject: [DynoMotion] Re: Kflop / Kanalog
>
> Â
> Hi Tom,
>
> I may be asking it to go to fast.
>
> For cutting probably max around 50mm/second. rapids a bit more.
> Acceleration is probably more important.
> How do you corelate between acceleration and velocity figures on the motion
> profile and actual speeds.
>
> I changed the integrator to 2047 and the error to 5000 and the asymetry
> disapeared I tried increasing the velocity but it seemed to peak. How do you
> know if you are getting the best out of the system?
>
> I uploaded a couple of screenshots to see if you can see what is happening.
>
> Regards
>
> Art
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Art,
> >
> > Its common to have mechanical issues like more binding moving one way rather
> > than the other.
> >
> > Your plots aren't very clear.ÃÂ I can't tell if we are falling behind, or
> >ahead,
> >
> > or oscillating.
> >
> > Could you make some more that show what is going on more clearly.
> >
> > For simplicity remove any feed forward.ÃÂ Increase the max Integrator to 2047
> >and
> >
> > max error to 5000.
> >
> > Increase the speed a bit so the problem is more pronounced.
> >
> > Zoom in on the problem area (left click drag zoom in, right click to zoom
> out).
> >
> > And plot Error rather than Command and Position.
> >
> > Check that you don't have any IIR Filters (all set to flat gain 1).
> >
> > Also verify that your system is capable of these speeds by disabling the axis
> > and just issuing DAC commands from the console.ÃÂ DACx=-600 should give you
> >about
> >
> > the problem speed, larger negative values should be faster.
> >
> > Encoder counts aren't being lost are they (moves back to where it started).
> >
> > Sorry nothing obvious...
> >
> > Regards
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: "aeunson@" <aeunson@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Wed, September 29, 2010 1:35:55 PM
> > Subject: [DynoMotion] Re: Kflop / Kanalog
> >
> > ÃÂ
> > Hi again Tom,
> >
> > The asymetrical movement is the same with 3 motors and 4 amps.
> >
> > Any idea what could cause this?
> >
> > Regards
> >
> > Art
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Art,
> > >
> > > Try increasing the max integrator from 200 to 2047 as it looks like we need
> > > about 600 DAC counts to go at a speed of 100000 cnts/sec.
> > >
> > > But there is something asymmetrical happening as well.
> > >
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: "aeunson@" <aeunson@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tue, September 28, 2010 1:21:19 PM
> > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > >
> > > ÃâÃÂ
> > > Thanks Tom
> > >
> > > I see that now you have explained it.
> > >
> > > I have changed the paramaters as suggested and tried tuning the system.
> > >
> > > To get the command and position to track I have increased the p gain to 1.2,
>
> > > this allows me to make a move upto 10000 before the output starts to
> distort.
> > >
> > > Above 10000 the output on the return starts to distort so I then increased
> >the
> >
> >
> > > feed forward V to 0.003. this let me increase the move to 90000 before the
> > > output distorts.
> > >
> > > I then tried to increase the velocity but the output starts to distort
> again.
> > >
> > > The x axis is 800mm and the movement still seems quite slow.
> > >
> > > I am not sure if I am changing the correct parameters can you please advise.
> > >
> > > I have uploaded some screenshots
> > >
> > > Regards
> > >
> > > Art
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Art,
> > > >
> > > > Your Jerk setting is extremely low.
> > > >
> > > > With a Jerk limit of only 3000 cnts/sec^3 and a max acceleration of 175542
>
> > > > cnts/sec^2 it would take:
> > > >
> > > > 175542/3000 = 58 seconds
> > > >
> > > > before the acceleration would ramp up to the maximum you are
> >specifying.ÃÆ'ââ¬Å¡ÃâÃÂ
> >
> >
> > > >Mach3
> > > >
> > > > has no Jerk limit, it applies the full acceleration you specify
> > >instantly.ÃÆ'ââ¬Å¡ÃâàSo
> > >
> > > >
> > > > to see a similar motion that equates to what Mach3 is generating, set the
> > >Jerk
> > >
> > >
> > > > to a much bigger number like 2e7.ÃÆ'ââ¬Å¡ÃâàThen the acceleration will be
> >fully
> >
> > >applied
> > >
> > > >
> > > > in a few milliseconds:
> > > >
> > > > 175542/20000000 = 0.008 seconds.
> > > >
> > > >
> > > > There is also a mistake with the velocity.ÃÆ'ââ¬Å¡ÃâàMach3 specifies the max
> >
> > >velocity
> > >
> > > >per
> > > >
> > > > minute rather than per second so the velocity in counts/sec would be 48761
>
> > > > rather than 2925700.
> > > >
> > > >
> > > > After you make these two corrections the motionÃÆ'ââ¬Å¡Ãâàon the Step
> >Response
> >
> > >screen
> > >
> > > >will
> > > >
> > > > be much faster and you will probably see larger following errors.ÃÆ'ââ¬Å¡ÃâÃÂ
> >You
> >
> > >will
> > >
> > > >then
> > > >
> > > > be able to tune the system and determine the real limitations of your
> > system.
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: "aeunson@" <aeunson@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Mon, September 27, 2010 3:09:52 PM
> > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > >
> > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > Tom
> > > >
> > > > I have uploaded the mach motor tuning screenshot and the kmotion screen
> > shot.
> > > >
> > > > The servo with linear actuator connected is 7mm / motor rev. the resolution
> >
> > >is
> > >
> > >
> > > > 4096 per rev.
> > > >
> > > > If the velocity in mach is any more than 5000 I get a follower error.
> > > > At 5000 the movement of the table is quite slow but accurate.
> > > >
> > > > I also converted the mach figures as advised and ran them in kmotion where
>
> > >the
> > >
> > >
> > > > table seemed to move even slower.
> > > >
> > > > Please advise where you think I have gone wrong.
> > > >
> > > > Regards
> > > >
> > > > Art
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Art,
> > > > >
> > > > > Well you need to test the motion on the Step Response Screen for the same
> >
> > > >type
> > > >
> > > >
> > > > > of motion you are attempting under Mach3 to see a respective
> > >response.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > >
> > > >For
> > > >
> > > > > example making a small/slow move from the Step Response screen may show
> > >small
> > >
> > > >
> > > > > following errors, but a large, faster, higher acceleration move under
> >Mach3
> >
> > >
> > > >may
> > > >
> > > > >
> > > > > have large following errors.ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > >
> > > > > #1 What Velocity and Acceleration do you have Mach3 "Tuning" Set at?
> > > > >
> > > > > #2 What following error setting are you using?
> > > > >
> > > > > #3 Mach3 motions are not Jerk LimitedÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ãâàso set the
> >KMotion Jerk value
> >
> > >100X
> > >
> > > >the
> > > >
> > > > > acceleration value to see a similar motion.
> > > > >
> > > > > #4 convert the Mach3 Vel and Accel values to encoder counts (multiply by
>
> > > >counts
> > > >
> > > > >
> > > > > per mm)
> > > > >
> > > > > #5 plot a 90mm motion (Command, Position, Output)
> > > > >
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: "aeunson@" <aeunson@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Mon, September 27, 2010 1:05:52 PM
> > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > >
> > > > > ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > >
> > > > > Tom,
> > > > >
> > > > > There is the message in the console "Following error 0 axis disabled
> > > > >
> > > > > I did tune them in the response screen before running Mach a few weeks
> > ago.
> > > > >
> > > > > Regards
> > > > >
> > > > > Art
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Art,
> > > > > >
> > > > > > Is there a message in the KMotion Console screen such as "Following
> > > > >error..."?
> > > > > >
> > > > > > Before attempting to use Mach3 you should tune the motors using the
> > >KMotion
> > >
> > > >
> > > > > >Step
> > > > > >
> > > > > > Response Screen and verify that you can make moves at your needed
> >speeds
> >
> >
> > > >and
> > > >
> > > >
> > > > > > accuracies.ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàWhat are your
> >following errors for a 45mm
> >
> > >move?
> > > > > >
> > > > > > Regards
> > > > > > TKÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: "aeunson@" <aeunson@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Mon, September 27, 2010 10:56:07 AM
> > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > >
> > > > > > ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > Hi Tom
> > > > > >
> > > > > > I have finaly managed to get some time on the router.
> > > > > >
> > > > > > I have the x & y axis connected and the motor tuning all set up so that
> >I
> >
> > >
> > > >can
> > > >
> > > > >
> > > > > > accurately drive the table in Mach a set amount but if I try and drive
> >it
> >
> > >
> > > > > > anymore than 45mm at a time the table stops and I get this message:
> > > > >"dynamotion
> > > > >
> > > > > >
> > > > > > status all axes disabled"
> > > > > >
> > > > > > Any idea where I have gone wrong?
> > > > > >
> > > > > > Art
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, "aeunson@" <aeunson@> wrote:
> > > > > > >
> > > > > > >
> > > > > > > Hi Tom,
> > > > > > >
> > > > > > > I realised that just before going to bed last night and all is
> >working
> >
> >
> > > > >well.
> > > > > > >
> > > > > > > However I did have to set steps per to 322.5 to get the DRO to read
> > > > >correctly
> > > > >
> > > > > >
> > > > > > >as it was reading low with the calculated value.
> > > > > > >
> > > > > > > I think I can now wait untill I fully complete the machine before I
> > >take
> > >
> > >
> > > > >this
> > > > >
> > > > > >
> > > > > > >any further when I will probably be back with lots of questions.
> > > > > > >
> > > > > > > Once I get it up and running I will post a video of it running but
> >this
> >
> > >
> > > > >will
> > > > >
> > > > > >be
> > > > > >
> > > > > > >a few weeks
> > > > > > >
> > > > > > > Thanks for yor help. You certainly support your product well.
> > > > > > >
> > > > > > > Best regards
> > > > > > >
> > > > > > > Art
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Art,
> > > > > > > >
> > > > > > > >
> >No.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > In KMotion everything
> >
> > >is in
> > >
> > >
> >>counts.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > You would
> >
> > > >
> > > > >change Mach3
> > > > >
> > > > > >"Motor
> > > > > >
> > > > > > > >
> >Tuning".ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > Since you work in
> >
> >>mm.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> >
> > >
> > > >The number of counts/mm
> > > >
> > > > >would be:
> > > > > > > >
> > > > > > > > 4096*2/25.4=322.5196 counts/mm
> > > > > > > >
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ________________________________
> > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Fri, August 13, 2010 4:50:05 PM
> > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > >
> > > > > > > >
> >ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >
> > > > > > > >
> > > > > > > > Hi Tom,
> > > > > > > >
> > > > > > > > This motor is conected to a ballscrew which is 2 turns to the
> inch.
> > > > > > > >
> > > > > > > > Do I change this in kmotion and re-write the c prog?
> > > > > > > >
> > > > > > > > Regards
> > > > > > > >
> > > > > > > > Art
> > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Hi Arthur,
> > > > > > > > >
> > > > > > > > > I don't see anything specifically wrong in the Mach3Mill.xml
> > > > >
> >>>file.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > > It
> > >
> > > > > >
> > > > > > >seems
> > > > > > >
> > > > > > > > >to
> > > > > > > > >
> > > > > > > > > work for
> >>me.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > > Apparently
> > >
> > > >Mach3 has an issue where it
> > > >
> > > > >saves the
> > > > >
> > > > > >XML file
> > > > > >
> > > > > > >into
> > > > > > >
> > > > > > > > > whatever the current directory is when you exit which I think can
> >
> > > > >result
> > > > >
> > > > > >in
> > > > > >
> > > > > > >
> > > > > > > > >lost
> > > > > > > > >
> > > > > > > > > changes and
> >>confusion.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > > Also
> > >
> > > >sometimes the units
> > > >
> > > > >inexplicably
> > > > >
> > > > > >change
> > > > > >
> > > > > > >from
> > > > > > >
> > > > > > > > >inches
> > > > > > > > >
> > > > > > > > > to mm mode, so check if somehow your base units somehow got
> > >switched
> > >
> > > >to
> > > >
> > > > >
> > > > > > mm.
> > > > > > > > >
> > > > > > > > > Maybe check what feed rate you specified?
> > > > > > > > >
> > > > > > > > > I see you set the resolution to 4096 which is the number of
> >encoder
> >
> > >
> > > > > > > > >counts/motor
> > > > > > > > >
> > > > > > > > >
> >>rev.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > > Usually mills have a
> > >
> > > >lead screw with about 5
> > > >
> > > > >turns/inch so
> > > > >
> > > > > >the
> > > > > >
> > > > > > >correct
> > > > > > >
> > > > > > > > > value would probably be more like 5x4096.
> > > > > > > > >
> > > > > > > > > Let us know how it goes and thanks for participating in the
> >Group.
> > > > > > > > >
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ________________________________
> > > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > Sent: Fri, August 13, 2010 8:26:29 AM
> > > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > > >
> > > > > > > > >
> >>ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >
> > > > > > > > > Hi Tom
> > > > > > > > >
> > > > > > > > > I have it working.
> > > > > > > > > Given a G0 x200 it will drive to 200. G0 x100 it will return to
> >100
> >
> > >
> > > >and
> > > >
> > > > >
> > > > > >G0
> > > > > >
> > > > > > >x0
> > > > > > >
> > > > > > > > >it
> > > > > > > > >
> > > > > > > > > returns to zero.
> > > > > > > > > G1 & G2 are very very slow.
> > > > > > > > >
> > > > > > > > > But it is slow so I posted the xml file into the files section to
> >
> > >see
> > >
> > > >
> > > > > >where
> > > > > >
> > > > > > >I
> > > > > > >
> > > > > > > > > have gone wrong.
> > > > > > > > >
> > > > > > > > > All the motors are the same but the x & y axis are different
> > >gearing
> > >
> > > >so
> > > >
> > > > >I
> > > > >
> > > > > >
> > > > > > > > >should
> > > > > > > > >
> > > > > > > > > be able to figure them out now.
> > > > > > > > >
> > > > > > > > > It going to be a couple of weeks before I get working on the full
> >
> > > >table
> > > >
> > > > >
> > > > > >but
> > > > > >
> > > > > > >I
> > > > > > >
> > > > > > > > >am
> > > > > > > > >
> > > > > > > > > very pleased I can now drive a single motor with mach3 and prove
> >it
> >
> > >
> > > > >will
> > > > >
> > > > >
> > > > > > >work.
> > > > > > > > >
> > > > > > > > > Regards
> > > > > > > > >
> > > > > > > > > Arthur
> > > > > > > > >
> > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > >
> > > > > > > > > > Hi Arthur,
> > > > > > > > > >
> > > > > > > > > >
> >>>Strange.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬ÃâæÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >ÃÂ
> > > > What about a G1 or
> > > >
> > > > >G2 move of for example
> > > > >
> > > > > >1 inch?
> > > > > > > > > >
> > > > > > > > > > What is your Mach3 Motor Tuning - Resolution, Vel, Accel,
> >Units?
> > > > > > > > > >
> > > > > > > > > > Maybe you should send your Mach3 XML file.
> > > > > > > > > >
> > > > > > > > > > TK
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > ________________________________
> > > > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > > Sent: Thu, August 12, 2010 4:40:40 PM
> > > > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > > > >
> > > > > > > > > >
> >>>ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬ÃâæÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >ÃÂ
> > > >
> > > > > > > > > >
> > > > > > > > > > Hi Tom,
> > > > > > > > > >
> > > > > > > > > > Nearly there but not quite.
> > > > > > > > > >
> > > > > > > > > > When I Jog in mach it will continue to run in one direction
> > >untill
> > >
> > > >I
> > > >
> > > >
> > > > > >jog
> > > > > >
> > > > > > >in
> > > > > > >
> > > > > > > > >the
> > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > opposite direction where it will still keep running.
> > > > > > > > > >
> > > > > > > > > > Here is the program I ended up with.
> > > > > > > > > >
> > > > > > > > > > Regards
> > > > > > > > > >
> > > > > > > > > > Arthur
> > > > > > > > > >
> > > > > > > > > > ch0->InputMode=ENCODER_MODE;
> > > > > > > > > > ch0->OutputMode=DAC_SERVO_MODE;
> > > > > > > > > > ch0->Vel=10000;
> > > > > > > > > > ch0->Accel=100000;
> > > > > > > > > > ch0->Jerk=1000000;
> > > > > > > > > > ch0->P=0.8000000119209;
> > > > > > > > > > ch0->I=9.999999747379e-005;
> > > > > > > > > > ch0->D=0;
> > > > > > > > > > ch0->FFAccel=0;
> > > > > > > > > > ch0->FFVel=0;
> > > > > > > > > > ch0->MaxI=200;
> > > > > > > > > > ch0->MaxErr=200;
> > > > > > > > > > ch0->MaxOutput=2047;
> > > > > > > > > > ch0->DeadBandGain=1;
> > > > > > > > > > ch0->DeadBandRange=0;
> > > > > > > > > > ch0->InputChan0=0;
> > > > > > > > > > ch0->InputChan1=1;
> > > > > > > > > > ch0->OutputChan0=0;
> > > > > > > > > > ch0->OutputChan1=1;
> > > > > > > > > > ch0->MasterAxis=-1;
> > > > > > > > > > ch0->LimitSwitchOptions=0x0;
> > > > > > > > > > ch0->InputGain0=-1;
> > > > > > > > > > ch0->InputGain1=1;
> > > > > > > > > > ch0->InputOffset0=0;
> > > > > > > > > > ch0->InputOffset1=0;
> > > > > > > > > > ch0->OutputGain=1;
> > > > > > > > > > ch0->OutputOffset=0;
> > > > > > > > > > ch0->SlaveGain=1;
> > > > > > > > > > ch0->BacklashMode=BACKLASH_OFF;
> > > > > > > > > > ch0->BacklashAmount=0;
> > > > > > > > > > ch0->BacklashRate=0;
> > > > > > > > > > ch0->invDistPerCycle=1;
> > > > > > > > > > ch0->Lead=0;
> > > > > > > > > > ch0->MaxFollowingError=4000;
> > > > > > > > > > ch0->StepperAmplitude=250;
> > > > > > > > > >
> > > > > > > > > > ch0->iir[0].B0=1;
> > > > > > > > > > ch0->iir[0].B1=0;
> > > > > > > > > > ch0->iir[0].B2=0;
> > > > > > > > > > ch0->iir[0].A1=0;
> > > > > > > > > > ch0->iir[0].A2=0;
> > > > > > > > > >
> > > > > > > > > > ch0->iir[1].B0=1;
> > > > > > > > > > ch0->iir[1].B1=0;
> > > > > > > > > > ch0->iir[1].B2=0;
> > > > > > > > > > ch0->iir[1].A1=0;
> > > > > > > > > > ch0->iir[1].A2=0;
> > > > > > > > > >
> > > > > > > > > > ch0->iir[2].B0=1;
> > > > > > > > > > ch0->iir[2].B1=0;
> > > > > > > > > > ch0->iir[2].B2=0;
> > > > > > > > > > ch0->iir[2].A1=0;
> > > > > > > > > > ch0->iir[2].A2=0;
> > > > > > > > > >
> > > > > > > > > > EnableAxisDest (0,ch0->Position);
> > > > > > > > > >
> > > > > > > > > > DefineCordSystem (0,-1,-1,-1);
> > > > > > > > > >
> > > > > > > > > > return 0;
> > > > > > > > > >
> > > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Hi Arthur,
> > > > > > > > > > >
> > > > > > > > > > > I didn't see a new file uploaded.
> > > > > > > > > > >
> > > > > > > > > > > Now that you have one axis working you are ready to try
> >driving
> >
> > >
> > > >it
> > > >
> > > >
> > > > > >from
> > > > > >
> > > > > > >
> > > > > > > > >
> >>>>Mach3.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬ÃâæÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >ÃÂ
> > > >
> > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > You need to make a C program that Mach can use to configure
> > > >KFlop.
> > > > > > > > > > >
> > > > > > > > > > > Follow the procedure described here (you are now at step 4)
> > > > > > > > > > >
> > > > > > > > > > > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> > > > > > > > > > >
> > > > > > > > > > > Start with some Example Initialization program such as
> > > > > > > >
> >>>>InitStepDir3Axis.c.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬ÃâæÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >ÃÂ
> > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > > > Paste
> >>>yourÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬ÃâæÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ãâàconfiguration
> >n
> > >n
> > > >
> > > > >over the ch0
> > > > >
> > > > >
> >>>>settings.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬ÃâæÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >ÃÂ
> > > > Remove
> > > >
> > > > > >
> > > > > > >all the
> > > > > > >
> > > > > > > > >settings
> > > > > > > > >
> > > > > > > > > >for
> > > > > > > > > >
> > > > > > > > > > >ch1
> > > > > > > > > > >
> > > > > > > > > > > and ch2.
> > > > > > > > > > >
> > > > > > > > > > > Change the
> >>>>DefineCoordSystemÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬ÃâæÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ãâàcall
> >l
> > >l
> > > >l to just define
> > > >
> > > > >
> > > > > >one ch0 axis
> > > > > >
> > > > > > >in the
> > > > > > >
> > > > > > > > >system
> > > > > > > > >
> > > > > > > > > >as
> > > > > > > > > >
> > > > > > > > > > >X
> > > > > > > > > > >
> > > > > > > > > > >
> >>>by:ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬ÃâæÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >ÃÂ
> > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > DefineCoordSystem(0,-1,-1,-1);
> > > > > > > > > > >
> > > > > > > > > > > Also change the Enable statement from:
> > > > > > > > > > >
> > > > > > > > > > > EnableAxisDest(0,0);
> > > > > > > > > > >
> > > > > > > > > > > to
> > > > > > > > > > >
> > > > > > > > > > > EnableAxisDest(0, ch0->Position);
> > > > > > > > > > >
> > > > > > > > > > > (this will enable the axis and servo at the current encoder
> > > > >position,
> > > > >
> > > > > >
> > > > > > > > > >otherwise
> > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > you might get a rapid motion to a destination of zero)
> > > > > > > > > > >
> > > > > > > > > > > Let us know how far you get.
> > > > > > > > > > >
> > > > > > > > > > > Regards
> > > > > > > > > > > TK
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > ________________________________
> > > > > > > > > > > From: "aeunson@" <aeunson@>
> > > > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > > > Sent: Thu, August 12, 2010 1:35:53 AM
> > > > > > > > > > > Subject: [DynoMotion] Re: Kflop / Kanalog
> > > > > > > > > > >
> > > > > > > > > > >
> >>>ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬ÃâæÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >ÃÂ
> > > >
> > > > > > > > > > >
> > > > > > > > > > > Thanks Tom,
> > > > > > > > > > >
> > > > > > > > > > > Your support of your product is excellent and I now feel I am
> >
> > > > >getting
> > > > >
> > > > > >
> > > > > > > > > > >somewhere.
> > > > > > > > > > >
> > > > > > > > > > > I increased the P gain upto 1.7 where I could just feel the
> > >motor
> > >
> > > >
> > > > > > >oscillate
> > > > > > >
> > > > > > > > >
> > > > > > > > > >so
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > > reduced it to 0.8.
> > > > > > > > > > >
> > > > > > > > > > > The I gain was set to 0.0001,any higher and it seemd to
> >create
> >
> > >an
> > >
> > > >
> > > > > > >overshoot
> > > > > > >
> > > > > > > > >
> > > > > > > > > >of
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > > the output.
> > > > > > > > > > >
> > > > > > > > > > > I also noticed to get a full revolution I had to increase the
> >
> > > >move
> > > >
> > > > >to
> > > > >
> > > > > >
> > > > > > > > 4096.
> > > > > > > > > > >
> > > > > > > > > > > Again I have uploaded the results to the files section.
> > > > > > > > > > >
> > > > > > > > > > > Before I move everything out to the workshop and connect up
> >the
> >
> > >
> > > > > >machine
> > > > > >
> > > > > > >for
> > > > > > >
> > > > > > > > >
> > > > > > > > > > >real
> > > > > > > > > > >
> > > > > > > > > > > I would like to be able to understand getting Mach to work on
> >
> > >the
> > >
> > > >
> > > > > > >single
> > > > > > >
> > > > > > > > >axis
> > > > > > > > >
> > > > > > > > > >I
> > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > have here in the office. I will also connect up home and
> >limit
> >
> >
> > > > > > >switches.
> > > > > > > > > > >
> > > > > > > > > > > Regards
> > > > > > > > > > >
> > > > > > > > > > > Arthur
> > > > > > > > > > >
> > > > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > > >
> > > > > > > > > > > > Congratulations
> >>>>Arthur!ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Å¡Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Å¡ÃâæÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ã
> ââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬ÃâæÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >ÃÂ
> > > >ÃâÃÂ
> > > > >
> > > > > >You now have a closed
> > > > > >
> > > > > > >servo
> > > > > > >
> > > > > > > >
> >>>>>loop.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Å¡Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Å¡ÃâæÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ãâ
> âÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬ÃâæÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >ÃÂ
> > > >ÃâÃÂ
> > > > >
> > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > Since moving 1000 counts results in 1/2 rev, then the
> > > >resolution
> > > >
> > > >
> > > > > >must
> > > > > >
> > > > > > >be
> > > > > > >
> > > > > > > >
> > > > > > > > > > >about
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > > 2000 counts/rev.
> > > > > > > > > > > >
> > > > > > > > > > > > Of course your motion is very slow and sloppy so the next
> > >step
> > >
> > > >is
> > > >
> > > > >
> > > > > >to
> > > > > >
> > > > > >
> > > > > > > > > >optimize
> > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > > the servo
> >>>>tuning.ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Å¡Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Å¡ÃâæÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ã
> ââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬ÃâæÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >ÃÂ
> > > >ÃâÃÂ
> > > > > Please
> > > > >
> > > > > >see:
> > > > > > > > > > > >
> > > > > > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/message/507
> > > > > > > > > > > >
> > > > > > > > > > > > Notice in your case, the output (green plot and right side
>
> > > > > > > >
> >>>>>scale)ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Å¡Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Å¡ÃâæÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ã
> ââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬ÃâæÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ãâàis
> >s
> > >s
> > > >s
> > > > >
> > > > > > > > >
> > > > > > > > > > >clamping
> > > > > > > > > > >
> > > > > > > > > > > >at
> > > > > > > > > > > >
> > > > > > > > > > > > only 20 DAC counts
> >>>>>(~0.1V).ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Å¡Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Å¡ÃâæÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡Ã
> ââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬ÃâæÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> >Â
> > >ÃÂ
> > > >ÃâÃÂ
> > > > >ÃÆ'ââ¬Å¡ÃâàThis is because of
> > > > >
> > > > > >
> > > > > > >our max allowed
> > > > > > >
> > > > > > > > >error
> > > > > > > > >
> > > > > > > > > >(200)
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > > >and
> > > > > > > > > > > >
> > > > > > > > > > > > very
> >>>>lowÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Å¡Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Å¡ÃâæÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâà'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃ
> ¢ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬ÃâæÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'âââ¬Ã 'ÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃââÃÆ'Ã'ÃââÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'ââ¬Å¡ÃâìÃÆ'Ã'âââ¬Ã¦ÃÆ'ââ¬Å¡ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Â 'ÃÆ'Ã'ÃââÃÆ'ââââ¬Ã
¡ÃâìÃÆ'ââ¬Â¦ÃâáÃÆ'Ã'Ãâ 'ÃÆ'ââââ¬Å¡Ã¬Ãâ¦Ã¡ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâàP
> >P
> > >P
> > > >P
> > > > > gain of 0.1.
> > > > > > > > > > > >
> > > > > > > > > > > > Regards
> > > > > > > > > > > > TK
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 683 |
From: Tom Kerekes |
Date: 10/2/2010 |
Subject: Re: Kflop / Kanalog |
Hi Art,
That looks very good. Except the Acceleration limit is basically set to infinity so the max acceleration is limited by the Jerk (and the Max Velocity). It would take 500 seconds at the specified Jerk to reach the max acceleration, but after a fraction of a second of ramping the acceleration the max velocity would be exceeded. This is fine for generating nice smooth motion, but since Mach3 has no Jerk control that value of acceleration won't work. As you change the Acceleration keep the numeric value of the Jerk about 100X larger than the numeric value of the Acceleration. This will apply the full Acceleration in ~ 0.01 seconds which is similar to what happens in Mach3.
TK
Group: DynoMotion |
Message: 686 |
From: aeunson@btinternet.com |
Date: 10/2/2010 |
Subject: Re: Kflop / Kanalog |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |